Link to home
Start Free TrialLog in
Avatar of Mikal613
Mikal613Flag for United States of America

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/MyFunnyPage.

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
Avatar of Emmanuel Adebayo
Emmanuel Adebayo
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mikal613

ASKER

Thank You!! Perfect!!