Difference between revisions of "Web.config Edits"
From KOP KB
(Created page with "You may need to only copy some parts as the may have a web.config file already created <syntaxhighlight lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <configuration>...") |
m (ReMaster moved page Windows SSL Web.config Redirect to Web.config Edits without leaving a redirect) |
(No difference)
| |
Revision as of 16:41, 5 August 2014
You may need to only copy some parts as the may have a web.config file already created <syntaxhighlight lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect domain.com to www" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="cherokeestatebank.com" />
</conditions>
<action type="Redirect" url="http://www.cherokeestatebank.com/{R:0}" />
</rule>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration> </sytnaxhighlight>