Created
April 19, 2017 07:32
-
-
Save solrevdev/f62546d717af0a38a05d28fd26147712 to your computer and use it in GitHub Desktop.
Add a www to requests to the apex domain in web.config transforms
This file contains hidden or 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
<system.webServer> | |
<rewrite xdt:Transform="Insert"> | |
<rules> | |
<rule name="Add WWW prefix to requests to apex domain" > | |
<match url="(.*)" ignoreCase="true" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^thedomain\.com" /> | |
</conditions> | |
<action type="Redirect" url="https://www.thedomain.com/{R:1}" redirectType="Permanent" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment