1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 15:11:40 +02:00

Add IIS support

This commit is contained in:
Chaoyi Zha 2015-02-14 15:14:48 -05:00
parent 6039cb04a5
commit f0d2fa7b0b

21
web.config.example Normal file
View File

@ -0,0 +1,21 @@
<!-- Please append this to your web.config if you are using IIS -->
<rewrite>
<rules>
<rule name="rule 3Z" stopProcessing="true">
<match url="^([a-zA-Z0-9]+)\?([a-zA-Z0-9]+)$" />
<action type="Rewrite" url="//r.php?u={R:1}&amp;lkey={R:2}" appendQueryString="true" />
</rule>
<rule name="rule 4Z" stopProcessing="true">
<match url="^([a-zA-Z0-9]+)/?$" />
<action type="Rewrite" url="//r.php?u={R:1}" appendQueryString="true" />
</rule>
<rule name="rule 5Z" stopProcessing="true">
<match url="^t-([a-zA-Z0-9]+)/?$" />
<action type="Rewrite" url="//r.php?u=t-{R:1}" appendQueryString="true" />
</rule>
<rule name="rule 6Z" stopProcessing="true">
<match url="^/?\+([a-zA-Z0-9]+)$" />
<action type="Rewrite" url="//stats.php?bv={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>