Created
September 18, 2013 02:51
-
-
Save 5iDS/6603870 to your computer and use it in GitHub Desktop.
IIS REWRITE NON-WWW TO WWW
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
<rewrite> | |
<rules> | |
<rule name="Redirect domain.com to www" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="*" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="domain.com" /> | |
</conditions> | |
<action type="Redirect" url="http://www.domain.com/{R:0}" /> | |
</rule> | |
</rules> | |
</rewrite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment