urlrewritingnet – Keep original URL hidden from user

By Athul

My raw page Url is like this

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

How i want this URL to be visible for user is like this

http://mydomain/product-list/FURNITURE-HOUSE?Type=AllProducts&ListCategory=Category&ListCriteria=All&KeyWord=109

So I wrote a urlrewritingnet Rule like this

    <add name="produktidrewrite"
     virtualUrl="^~/product-list/(.*)"
     rewriteUrlParameter="ExcludeFromClientQueryString"
     destinationUrl="~/product-list"
     redirect="Application"
     redirectMode="Permanent"
     ignoreCase="true" />

This works like when ever I enter this url in browser

http://mydomain/product-list/FURNITURE-HOUSE?Type=AllProducts&ListCategory=Category&ListCriteria=All&KeyWord=109

it is rewritten to

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

as you can see category name is gone from the URL. how can I overcome this? And make sure that user also see a URL like this

http://mydomain/product-list/FURNITURE-HOUSE?Type=AllProducts&ListCategory=Category&ListCriteria=All&KeyWord=109

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273