Updated web.config to include https redirect
This commit is contained in:
parent
0cab779072
commit
4abcbb87d1
12
web.config
12
web.config
@ -1,6 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<system.webServer>
|
<system.webServer>
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<rewrite>
|
||||||
|
<rules>
|
||||||
|
<rule name="Redirect to HTTPS" stopProcessing="false">
|
||||||
|
<match url="(.*)" />
|
||||||
|
<conditions>
|
||||||
|
<add input="{HTTPS}" pattern="^OFF$" />
|
||||||
|
</conditions>
|
||||||
|
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
|
||||||
|
</rule>
|
||||||
|
</rules>
|
||||||
|
</rewrite>
|
||||||
<defaultDocument>
|
<defaultDocument>
|
||||||
<files>
|
<files>
|
||||||
<clear />
|
<clear />
|
||||||
|
Loading…
Reference in New Issue
Block a user