forked from stride3d/stride-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
31 lines (30 loc) · 1.22 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension="woff" />
<remove fileExtension="woff2" />
<mimeMap fileExtension="woff" mimeType="application/x-font-woff" />
<mimeMap fileExtension="woff2" mimeType="application/font-woff2" />
<remove fileExtension=".mp4" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
<rewrite>
<rules>
<rule name="Redirect any path missing language info to /en/" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{R:1}" pattern="^(en|jp)(/|$)" negate="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="en/{R:1}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Custom">
<remove statusCode="404" />
<error statusCode="404" path="en\404.html" responseMode="File" />
</httpErrors>
</system.webServer>
</configuration>