forked from seblucas/cops
-
Notifications
You must be signed in to change notification settings - Fork 7
/
web.config
20 lines (20 loc) · 888 Bytes
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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="index.php/fetch/{R:2}/{R:1}/ignore.{R:3}" appendQueryString="false" />
</rule>
<rule name="View with db" stopProcessing="true">
<match url="view/(\d*)/(\d*)/.*\.(.*?)$" />
<action type="Rewrite" url="index.php/inline/{R:2}/{R:1}/ignore.{R:3}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>