troubleshooting Question

IIS Url Rewrite - new rule - Redirect a specific url to another

Avatar of Mikal613
Mikal613Flag for United States of America asked on
Microsoft IIS Web ServerMicrosoft Legacy OSMicrosoft Server Apps
2 Comments1 Solution3424 ViewsLast Modified:
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>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros