redirect - iis7 url rewrite matching query string exactly -
trying create rule redirect http://www.mystore.com/product_info.php?products_id=3 http://www.mystore.com/product/widget-666
so far got following:
<rule name="rewrite .php" stopprocessing="true"> <match url="^(.*)product_info\.php$" /> <conditions logicalgrouping="matchany"> <add input="{query_string}" pattern="products_id=3" /> <add input="{http_host}" pattern="(.*)mystore*" /> </conditions> <action type="redirect" url="/product/widget-666" appendquerystring="false" /> </rule>
... not match on products_id=3, if products_id=8 still redirects
changed
<conditions logicalgrouping="matchany">
to
<conditions logicalgrouping="matchall">
Comments
Post a Comment