其实很简单只需要把我的web.config文件放到主目录下就行了
[XML] 纯文本查看 复制代码 <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1">
<match url="^(.*/)*topic-(.+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/portal.php\?mod=topic&topic={R:2}&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 2">
<match url="^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/portal.php\?mod=view&aid={R:2}&page={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 3">
<match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&page={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 4">
<match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&tid={R:2}&extra=page%3D{R:4}&page={R:3}&{R:5}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5">
<match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=group&fid={R:2}&page={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 6">
<match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 7">
<match url="^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/home.php\?mod=space&uid={R:2}&do=blog&id={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 8">
<match url="^(.*/)*(fid|tid)-([0-9]+).html\?*(.*)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/index.php\?action={R:2}&value={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9">
<match url="^(.*/)*([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+).html\?*(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/plugin.php\?id={R:2}:{R:3}&{R:4}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 10">
<match url="^(.*)/\?([0-9]+)$" ignoreCase="true" />
<action type="Rewrite" url="{R:1}/home\.php\?mod=space&uid={R:2}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
也可以直接下载
web.zip
(709 Bytes, 下载次数: 0)
|