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>
Microsoft IIS Web ServerMicrosoft Legacy OSMicrosoft Server Apps

Avatar of undefined
Last Comment
Mikal613
ASKER CERTIFIED SOLUTION
Avatar of Emmanuel Adebayo
Emmanuel Adebayo
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Mikal613
Mikal613
Flag of United States of America image

ASKER

Thank You!! Perfect!!
Microsoft Legacy OS
Microsoft Legacy OS

The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.

55K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo