-
Notifications
You must be signed in to change notification settings - Fork 12
/
web.config
34 lines (34 loc) · 1.42 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".gp3" mimeType="application/gp3" />
<mimeMap fileExtension=".gp4" mimeType="application/gp4" />
<mimeMap fileExtension=".gp5" mimeType="application/gp5" />
<mimeMap fileExtension=".gpx" mimeType="application/gp6" />
<mimeMap fileExtension=".gp" mimeType="application/gp7" />
<mimeMap fileExtension=".exe2" mimeType="application/mono" />
<mimeMap fileExtension=".sf2" mimeType="application/soundfont2" />
</staticContent>
<httpErrors errorMode="Detailed" existingResponse="Auto" />
<rewrite>
<rules>
<rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{SERVER_PORT_SECURE}" pattern="^0$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
<rule name="html">
<match url="(.*)" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>