Copied to clipboard

Flag this post as spam?

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


  • athul 26 posts 117 karma points
    Mar 02, 2017 @ 10:20
    athul
    0

    URL rewrite not working

    My current URL is like this

    http://mydomain.com/product-list?Type=AllProducts&ListCategory=Category&ListCriteria=All&KeyWord=109&CategoryName=mycategory
    

    I want to hide the querry string values from user, so that a common user will see my site Url like this

    http://mydomain.com/product-list/mycategory
    

    I have tried to configure this in Urlrewriting.config like this

        <add name="produktidrewrite"
     virtualUrl="^~/product-list/(.*)"
     rewriteUrlParameter="ExcludeFromClientQueryString"
     destinationUrl="~/product-list?CategoryName=$1"
     ignoreCase="true" />
    

    but it doesn't works. Can any one point out what I am doing wrong here?

  • 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