Browse Source

Add the rewrite rules for IIS. It's still mandatory to install http://www.iis.net/downloads/microsoft/url-rewrite. fix #249

master
Sébastien Lucas 8 years ago
parent
commit
2e05a14c37
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      web.config

+ 12
- 0
web.config View File

@@ -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}&amp;db={R:2}&amp;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}&amp;type={R:2}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Loading…
Cancel
Save