phpwind 用在iis 7 url rewrite module 下的规则文件

来源:百度知道 编辑:UC知道 时间:2024/06/17 02:02:14
dz的如何谁能参考给我些个phpwind的

<rewrite>
<rules>
<rule name="Imported Rule 17">
<match url="^archiver/((fid|tid)-[\w\-]+\.html)$" ignoreCase="false" />
<action type="Rewrite" url="archiver/index.php?{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 18">
<match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="forumdisplay.php?fid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 19">
<match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\

discuz官方就有的!
http://faq.comsenz.com/viewnews-790

这里是官方提供的教程:http://faq.phpwind.net/show_help.php?help_id=321

如果仅从规则而言,PHPWind的伪静态规则最简单,就两条

RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2