-
Notifications
You must be signed in to change notification settings - Fork 229
/
web.config
28 lines (28 loc) · 1.43 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="14.00:00:00" />
</staticContent>
<rewrite>
<rules>
<rule name="Download with db" stopProcessing="true">
<match url="download/(\d*)/(\d*)/.*\.(.*?)$" />
<action type="Rewrite" url="fetch.php?data={R:1}&db={R:2}&type={R:3}" appendQueryString="false" />
</rule>
<rule name="View with db" stopProcessing="true">
<match url="view/(\d*)/(\d*)/.*\.(.*?)$" />
<action type="Rewrite" url="fetch.php?data={R:1}&db={R:2}&type={R:3}&view=1" appendQueryString="false" />
</rule>
<rule name="Download without db" stopProcessing="true">
<match url="download/(\d*)/.*\.(.*?)$" />
<action type="Rewrite" url="fetch.php?data={R:1}&type={R:2}" appendQueryString="false" />
</rule>
<rule name="View without db" stopProcessing="true">
<match url="view/(\d*)/.*\.(.*?)$" />
<action type="Rewrite" url="fetch.php?data={R:1}&type={R:2}&view=1" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>