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

Esse commit está contido em:
Sébastien Lucas 2016-02-17 10:54:52 +01:00
commit 2e05a14c37
1 arquivos alterados com 12 adições e 0 exclusões

Ver arquivo

@ -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>