Created
June 20, 2014 11:46
-
-
Save MarcStoecker/3ab577ee1801be67656c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rules> | |
<rule name="SimpleCanonicalHostNameRule"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^www\.example\.com$" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="http://www.example.com/{R:1}" redirectType="Permanent" /> | |
</rule> | |
</rules> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment