1.个人博客专用双线空间开始销售,1元/M/年,200M起售。全面预装防盗链,有效保障访问速度。
2.轻松拥有独立博客,免费享受维护服务,365元/年博客服务套餐
QQ:2687298

discuz7 for iis 7 URL Rewrite Module

[不指定 2009/09/23 15:40 | by Totti ]
Discuz 在IIS7 下的 rewrite规则:

模块下载:
http://www.iis.net/extensions/URLRewrite
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>

        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^archiver/((fid|tid)-[\w\-]+\.html)$" ignoreCase="true" />
                    <action type="Rewrite" url="archiver/index.php?{R:1}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="true" />
                    <action type="Rewrite" url="forumdisplay.php?fid={R:1}&amp;page={R:2}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="true" />
                    <action type="Rewrite" url="viewthread.php?tid={R:1}&amp;extra=page\%3D$3&amp;page={R:2}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^space-(username|uid)-(.+)\.html$" ignoreCase="true" />
                    <action type="Rewrite" url="space.php?{R:1}={R:2}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^tag-(.+)\.html$" ignoreCase="true" />
                    <action type="Rewrite" url="tag.php?name={R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

      
Tags: ,
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]