<rewrite>
<rules>
<rule name="Redirect CM" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^HVProduct$" />
<action type="Redirect" url="http://www.CMMDesign.com/Management/Contact" appendQueryString="false" />
</rule>
</rules>
</rewrite>
I wanted to redirect users to another page when ever they try to access "www.CMMDesign.com/HVProduct" redirect to "http://www.CMMDesign.com/Management/Contact"
I tried with exact match and wild card also not working. Any ideas?
First you must install the URL rewrite module, if not installed, please follow the steps below to install:
1):Visit http://www.iis.net/downloads/microsoft/url-rewrite ;
2):At the bottom of the page you can download the installer without using Web Platform.
3):Run the MSI installer to add the URL Rewrite Module to your server.
Then modify your URL Rewrite rules as follows:
<rewrite>
<rules>
<rule name="Test" stopProcessing="true">
<match url="(.*)(HVProduct)" />
<action type="Redirect" url="http://www.CMMDesign.com/Management/Contact" />
</rule>
</rules>
</rewrite>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.