Created
April 20, 2014 15:29
-
-
Save justin/11116873 to your computer and use it in GitHub Desktop.
web.config for carpeaqua
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="false" /> | |
<httpErrors errorMode="Custom" existingResponse="Replace"> | |
<remove statusCode="404" /> | |
<error statusCode="404" responseMode="File" path="404.html" /> | |
</httpErrors> | |
<rewrite> | |
<rules> | |
<rule name="Remove WWW prefix" > | |
<match url="(.*)" ignoreCase="true" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^www\.carpeaqua\.com" /> | |
</conditions> | |
<action type="Redirect" url="http://carpeaqua.com/{R:1}" | |
redirectType="Permanent" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment