Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am adding re-writing rules to the UrlRewriting.config file. One of the rules I need to do is as follows:
/products/cold-cathode.aspx
needs to be rewritten to
/products/product-list.aspx?cat=cold-cathode
The rule I am using is as follows:
<add name="ColdCathode" virtualUrl="^~/products/(.*).aspx$" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/products/product-list.aspx?cat=$1" ignoreCase="true"/>
This seems to be working, but instead of the user still seeing /products/cold-cathode.aspx the user is instead seeing the destinationUrl. How do you ensure that the original URL is still shown but the destination page is as specified.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
URL Rewriting
I am adding re-writing rules to the UrlRewriting.config file. One of the rules I need to do is as follows:
/products/cold-cathode.aspx
needs to be rewritten to
/products/product-list.aspx?cat=cold-cathode
The rule I am using is as follows:
<add name="ColdCathode"
virtualUrl="^~/products/(.*).aspx$"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/products/product-list.aspx?cat=$1"
ignoreCase="true"
/>
This seems to be working, but instead of the user still seeing /products/cold-cathode.aspx the user is instead seeing the destinationUrl. How do you ensure that the original URL is still shown but the destination page is as specified.
is working on a reply...