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: ,
收集 | 评论(0) | 引用(0) | 阅读(3499)
发表评论
昵称

网址

电邮
打开HTML 打开UBB 表情 打开表情 隐藏 记住我 [注册]