Redirecting user friendly url to query string syntax

Oct 11, 2011 at 11:48 PM

Hello,

I've seen the sample configuration file and had a question about redirecting a user friendly URL to a query string syntax. Here is the rule:

<add name="Rule3"
           action="redirect"
           from="~/products/(.*)"
           to="~/products.aspx?Model=$1"
           transformType="String" ignoreCase="true"/>

Now it looks like if I went to an address like this http://localhost/products/1 it should redirect to http://localhost/products.aspx?Model=1.  Is this assuption correct?  If so, this rule is not working.  Any thoughts on what may be the issue?

Thank you and appreciate any help.