Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 351 posts 606 karma points
    Sep 08, 2015 @ 09:44
    J
    0

    Help with UrlRewrite

    Current URLs to target

    http://localhost:12345/our-prods/subsec.aspx?mid=6 - Displays all Media products

    http://localhost:12345/our-prods/for-sale.aspx?mid=6&sid=19 - Displays all media products, for a particular brand

    http://localhost:12345/prod/details.aspx?pid=11&mid=6&sid=19 - displays the product

    I am trying to get the URL to go from

    http://localhost:12345/our-prods/subsec.aspx?mid=6

    to

    http://localhost:12345/our-prods/subsec.aspx?Cds

    In the UrlRewriting.config file i add a new entry:

    <add name="TestUrl"
     virtualUrl="^~/our-prods/subsec/(.*)/(.*).aspx"
         rewriteUrlParameter="ExcludeFromClientQueryString"
         destinationUrl="~/our-prods/subsec.aspx?mid=$1"
         ignoreCase="true" />
    

    I refresh the page and it doesnt work. What could i be doing wrong?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies