<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="首页">
<match url="^index.html$" ignoreCase="false" />
<action type="Rewrite" url="index.php" appendQueryString="false" />
</rule>
<rule name="tag首页">
<match url="^tags.html$" ignoreCase="false" />
<action type="Rewrite" url="tags.php" appendQueryString="false" />
</rule>
<rule name="tag列表">
<match url="^tags/([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}" appendQueryString="false" />
</rule>
<rule name="tag列表最后有左斜杠">
<match url="^tags/([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}/" appendQueryString="false" />
</rule>
<rule name="tag列表分页">
<match url="^tags/([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}/{R:2}" appendQueryString="false" />
</rule>
<rule name="tag列表分页最后有左斜杠">
<match url="^tags/([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/tags.php?/{R:1}/{R:2}/" appendQueryString="false" />
</rule>
<rule name="列表">
<match url="^list-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/list.php?tid={R:1}" appendQueryString="false" />
</rule>
<rule name="列表分页">
<match url="^list-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/list.php?tid={R:2}&PageNo={R:3}" appendQueryString="false" />
</rule>
<rule name="文章页">
<match url="^view-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/view.php?aid={R:2}" appendQueryString="false" />
</rule>
<rule name="文章分页">
<match url="^view-([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/view.php?aid={R:2}&pageno={R:3}" appendQueryString="false" />
</rule>
<rule name="搜索页分页">
<match url="^search/(.*)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/search.php?q={R:1}&PageNo={R:2}&pagesize=10&searchtype=title" appendQueryString="false" />
</rule>
<rule name="搜索页">
<match url="^search/(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="/plus/search.php?q={R:1}&pagesize=10&searchtype=title" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
|