Skip to content

Commit 017b468

Browse files
committed
Add IIS config file courtesy of @ufukart
1 parent 54f5e3a commit 017b468

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

web.config

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<system.webServer>
4+
<rewrite>
5+
<rules>
6+
<rule name="Imported Rule 1" stopProcessing="true">
7+
<match url="^(.*)$" ignoreCase="false" />
8+
<conditions>
9+
<add input="{HTTPS}" pattern="off" ignoreCase="false" />
10+
</conditions>
11+
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}{URL}" />
12+
</rule>
13+
</rules>
14+
</rewrite>
15+
<staticContent>
16+
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
17+
</staticContent>
18+
</system.webServer>
19+
</configuration>

0 commit comments

Comments
 (0)