Mikal613
asked on
IIS Url Rewrite - new rule - Redirect a specific url to another
I am having a hard time creating a simple rule using the IIS Url rewrite module. It all it needs to do is redirect one URL To another.
From: www.MySite.com/MyFunnyPage
To: prod.Mysite.com/MyFunnyPag e.
This was my best attempt, but it did not redirect when I went to the URL:
<rule name="MyFunnyPage" stopProcessing="true">
<match url="MyFunnyPage" />
<conditions>
<add input="{HTTP_HOST}" pattern="http://www.MySite.com/" />
</conditions>
<action type="Redirect" url="http://prod.MySite.com/MyFunnyPage" />
</rule>
From: www.MySite.com/MyFunnyPage
To: prod.Mysite.com/MyFunnyPag
This was my best attempt, but it did not redirect when I went to the URL:
<rule name="MyFunnyPage" stopProcessing="true">
<match url="MyFunnyPage" />
<conditions>
<add input="{HTTP_HOST}" pattern="http://www.MySite.com/" />
</conditions>
<action type="Redirect" url="http://prod.MySite.com/MyFunnyPage" />
</rule>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER