Web.config Edits

From KOP KB
Revision as of 14:37, 1 August 2014 by ReMaster (talk | contribs) (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>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>