<rule name="blog" stopProcessing="true">
<match url="en/blog.aspx?Id=9" />
<action type="Redirect" url="http://www.mynewurl.com" redirectType="Permanent" />
</rule>
I can redirect "en/blog.aspx" but I am unable to redirect only "en/blog.aspx?Id=9".
Any Ideas?
Finally found the solution:
/en/blog.aspx?Id=9 will redirect to http://www.newurl.com.
<rule name="blog" stopProcessing="true">
<match url="en/blog.aspx$" />
<conditions>
<add input="{QUERY_STRING}" pattern="Id=9" />
</conditions>
<action type="Redirect" url="http://www.newurl.com" redirectType="Permanent" />
</rule>
Found the solution here : 301 redirect not working in IIS 7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With