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:
Sébastien Lucas 2016-02-17 10:54:52 +01:00
parent 204477462e
commit 2e05a14c37

View file

@ -4,5 +4,17 @@
<staticContent> <staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="14.00:00:00" /> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="14.00:00:00" />
</staticContent> </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> </system.webServer>
</configuration> </configuration>