有些站点还在使用Discuz的比较老版本的程序,今天共享一个Discuz6.0 iis7 伪静态规则
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="archiver">
<match url="^(.*)/archiver/([a-z0-9\-]+\.html)$" />
<action type="Rewrite" url="{R:1}/archiver/index.php\?{R:2}" />
</rule>
<rule name="forum">
<match url="^(.*)/forum-([0-9]+)-([0-9]+)\.html$" />
<action type="Rewrite" url="{R:1}/forumdisplay.php\?fid={R:2}&page={R:3}" />
</rule>
<rule name="space">
<match url="^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/space.php\?{R:2}={R:3}&{R:4}" />
</rule>
<rule name="thread">
<match url="^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" />
<action type="Rewrite" url="{R:1}/viewthread.php\?tid={R:2}&extra=page\%3D{R:4}&page={R:3}" />
</rule>
<rule name="profile">
<match url="^(.*)/profile-(username|uid)-(.+)\.html$" />
<action type="Rewrite" url="{R:1}/viewpro.php\?{R:2}={R:3}" />
</rule>
<rule name="tag">
<match url="^(.*)/tag-(.+)\.html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/tag.php\?name={R:2}&{R:3}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
保存为web.confg 上传到论坛根目录(独立主机需要安装url插件),就可使用了~~由于手头没discuz6程序只是按iis6规则转换,所以具体好用不请自行测试!
本教程有无限星辰工作室 http://www.xmspace.net 整理发布,转载请注明作者和地址,谢谢!
|
|
|
|
|