Add the rewrite rules for IIS. It's still mandatory to install http://www.iis.net/downloads/microsoft/url-rewrite. fix #249
这个提交存在于:
父节点
204477462e
当前提交
2e05a14c37
共有 1 个文件被更改,包括 12 次插入 和 0 次删除
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>
|
||||
正在加载…
添加表格
添加链接
在新工单中引用