Fix web.config rewrite rules on production

This commit is contained in:
2020-01-22 21:19:42 -05:00
parent 15e1c1d59a
commit 36a9e3b775
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -29,16 +29,16 @@
-->
</system.web>
<system.webServer>
<rewrite xdt:Transform="Insert">
<rewrite>
<rules>
<rule name="Redirect leafweb.ornl.gov to www.leafweb.org" stopProcessing="true">
<rule xdt:Transform="Insert" name="Redirect leafweb.ornl.gov to www.leafweb.org" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^leafweb.ornl.gov$" />
</conditions>
<action type="Redirect" url="https://www.leafweb.org/" redirectType="Permanent" />
</rule>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<rule xdt:Transform="Insert" name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
@@ -47,7 +47,7 @@
redirectType="Permanent" />
</rule>
</rules>
<outboundRules>
<outboundRules xdt:Transform="Insert">
<rule name="Add Strict-Transport-Security when HTTPS" enabled="true">
<match serverVariable="RESPONSE_Strict_Transport_Security"
pattern=".*" />