-
Notifications
You must be signed in to change notification settings - Fork 12
/
web.config
40 lines (31 loc) · 1.19 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
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path=".">
<system.webServer>
<rewrite>
<rules>
<rule name="Remove trailing slash" stopProcessing="true">
<match url="(.*)/$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="{tolower:{R:1}}_.html" />
</rule>
<rule name="GeneralRewrite" stopProcessing="true">
<match url="^(.*)$" ignoreCase="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_URI}" pattern="^/sites/.*$" negate="true" />
</conditions>
<action type="Rewrite" url="{tolower:{R:1}}_.html" />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<add value="climatechange_.html" />
</files>
</defaultDocument>
</system.webServer>
</location>
</configuration>