Add the rewrite rules for IIS. It's still mandatory to install http://www.iis.net/downloads/microsoft/url-rewrite. fix #249
This commit is contained in:
parent
204477462e
commit
2e05a14c37
12
web.config
12
web.config
|
@ -4,5 +4,17 @@
|
|||
<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="Download without db" stopProcessing="true">
|
||||
<match url="download/(\d*)/.*\.(.*?)$" />
|
||||
<action type="Rewrite" url="fetch.php?data={R:1}&type={R:2}" appendQueryString="false" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
Reference in a new issue