-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb.config
40 lines (40 loc) · 1.67 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
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="index.php"/>
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="CSS cache busting" stopProcessing="true">
<match url="^(.+)-(\d{1,10}).css$" />
<action type="Rewrite" url="{R:1}.min.css" />
</rule>
<rule name="Manifest" stopProcessing="true">
<match url="^manifest$" />
<action type="Rewrite" url="manifest.php" />
</rule>
<rule name="Service Worker cache busting" stopProcessing="true">
<match url="^serviceworker$" />
<action type="Rewrite" url="serviceworker.php" />
</rule>
<rule name="Achieve" stopProcessing="true">
<match url="^achieve(.*)" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="achieve.php?url={UNENCODED_URL}" />
</rule>
<rule name="Index" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?i={UNENCODED_URL}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>