Discuz7.x论坛备份数据互补 Discuz7.2论坛合并 Discuz!NT转Discuz7.2 DV.Net转Discuz7.2
Discuz!X1论坛备份数据互补 Discuz!X1论坛合并 Phpwind7.5转Discuz!NT3.1 Discuz!NT转Discuz!X1
Discuz!X1.5论坛备份数据互补 Discuz!X1.5论坛合并 Discuz!NT转Discuz!X1.5 Discuz!X1转Discuz!NT3.1
Discuz!X1.5转Discuz!NT3.5 UCenter1.5合并 Phpwind8.x转Discuz!NT3.5 Discuz!X2论坛合并
Discuz!X2论坛备份数据互补 BBSMAX5转Discuz!X2 Discuz!NT转Discuz!X2 Discuz!X2.5论坛合并
Discuz!NT转Discuz!X2.5
返回列表 回复 发帖

Discuz!NT=>Discuz! 7.0保持搜索引擎带来的流量之rewrite 规则

将下列内容保存为httpd.ini,或者直接下载附件包即可。此规则IIS适用,apache用户可据此稍作修改。

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/archiver/showforum-([0-9]+)\.html\?*(.*)$ $1/archiver/fid-$2\.html [R]
RewriteRule ^(.*)/archiver/showtopic-([0-9]+)\.html\?*(.*)$ $1/archiver/tid-$2\.html [R]
RewriteRule ^(.*)/attachment.aspx\?attachmentid=([0-9]+)\?*(.*)$ $1/attachment\.php\?aid=$2 [R]
RewriteRule ^(.*)/onlineuser.aspx\?*(.*)$ $1/member\.php\?action=online [R]
RewriteRule ^(.*)/showtree.aspx\?topicid=([0-9]+)&postid=([0-9]+)\?*(.*)$ $1/thread-$2-1-1\.html [R]
RewriteRule ^(.*)/showtree.aspx\?postid=([0-9]+)\?*(.*)$ $1/thread-$2-1-1\.html [R]
RewriteRule ^(.*)/register\.aspx\?*(.*)$ $1/register\.php [R]
RewriteRule ^(.*)/login\.aspx\?*(.*)$ $1/logging\.php\?action=login [R]
RewriteRule ^(.*)/showforum-([0-9]+)\.html\?*(.*)$ $1/forum-$2-1\.html [R]
RewriteRule ^(.*)/showforum-([0-9]+)(?:-([0-9]+))?\.html\?*(.*)$ $1/forum-$2-$3\.html [R]
RewriteRule ^(.*)/showforum-([0-9]+)\.aspx\?*(.*)$ $1/forum-$2-1\.html [R]
RewriteRule ^(.*)/showforum-([0-9]+)(?:-([0-9]+))?\.aspx\?*(.*)$ $1/forum-$2-$3\.html [R]
RewriteRule ^(.*)/showtopic.aspx\?topicid=([0-9]+)\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4 [R]
RewriteRule ^(.*)/showtopic-([0-9]+)\.html\?*(.*)$ $1/thread-$2-1-1\.html [R]
RewriteRule ^(.*)/showtopic-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/thread-$2-$3-1\.html [R]
RewriteRule ^(.*)/showtopic-([0-9]+)(?:-([0-9]+)(?:-([0-9]+))?)?\.html\?*(.*)$ $1/thread-$2-$3-$4\.html [R]
RewriteRule ^(.*)/showtopic-([0-9]+)\.aspx\?*(.*)$ $1/thread-$2-1-1\.html [R]
RewriteRule ^(.*)/showtopic-([0-9]+)-([0-9]+)\.aspx\?*(.*)$ $1/thread-$2-$3-1\.html [R]
RewriteRule ^(.*)/showtopic-([0-9]+)(?:-([0-9]+)(?:-([0-9]+))?)?\.aspx\?*(.*)$ $1/thread-$2-$3-$4\.html [R]
RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3

httpd.rar (650 Bytes)

业务联系QQ466356742  MSN && EMAIL: bailetian@hotmail.com
论坛问题请不要随意加我,我每晚会上论坛回答。

好东西啊,谢谢。能告诉我下载下来怎么用吗 我是新手
呵呵,我知道,原来这么简单。可惜原来的收录已经流失的差不多了。
这个放在哪里的???
放在论坛所在目录下
业务联系QQ466356742  MSN && EMAIL: bailetian@hotmail.com
论坛问题请不要随意加我,我每晚会上论坛回答。

我在NT里可以开启此功能,可到DZ里变成无法显示了。
IIS也设置好了。
我在NT里可以开启此功能,可到DZ里变成无法显示了。
IIS也设置好了。
mingsong 发表于 2009-12-14 21:34
说明你IIS没设置好。
业务联系QQ466356742  MSN && EMAIL: bailetian@hotmail.com
论坛问题请不要随意加我,我每晚会上论坛回答。

未命名.jpg
2009-12-15 12:54
isapi筛选器能看到成功启动了。
httpd.ini有正确配置么,路径不要放错。
业务联系QQ466356742  MSN && EMAIL: bailetian@hotmail.com
论坛问题请不要随意加我,我每晚会上论坛回答。

返回列表