黄瓜 发表于 2015-10-28 20:11:35

pw转换dz记录贴,方便后人

RewriteRule ^thread-htm-fid-(\d+)((-type-(\d+))*(-page-(\d+))*)*\.html.*$ forum.php?mod=forumdisplay&fid=$1&filter=type&typeid=$4&page=$6
RewriteCond %{QUERY_STRING} ^fid-(\d+)((-.+-(\d+))*\.html)*$
RewriteRule ^thread\.php forum.php?mod=forumdisplay&fid=%1&page=%3
RewriteCond %{QUERY_STRING} ^fid=(\d+)&type=(\d+)$
RewriteRule ^thread\.php forum.php?mod=forumdisplay&fid=%1&filter=type&typeid=%2
RewriteRule ^read-htm-tid-(\w+)(-page-(\d+|e)(-fpage-(\d+))*)*\.html$ forum.php?mod=viewthread&tid=$1&extra=page%3D$5&page=$3
RewriteCond %{QUERY_STRING} ^tid=(\d+)(&page=(\w+)(&fpage=(\d+))*)*$
RewriteRule ^read\.php forum.php?mod=viewthread&tid=%1&extra=page%3D1&page=%3
RewriteCond %{QUERY_STRING} ^tid-(\d+)(-page-(\w+))*\.html$
RewriteRule ^read\.php forum.php?mod=viewthread&tid=%1&page=%3
RewriteCond %{QUERY_STRING} ^tid-(\d+)-ordertype-desc\.html$
RewriteRule ^read\.php forum.php?mod=viewthread&tid=%1&extra=page%3D1&ordertype=1
RewriteCond %{QUERY_STRING} ^f(\d+)\.html$
RewriteRule ^simple/(index\.php)* forum.php?mod=forumdisplay&fid=%1
RewriteCond %{QUERY_STRING} ^t(\d+)(_(\d+))*\.html$
RewriteRule ^simple/(index\.php)* forum.php?mod=viewthread&tid=%1&archiver=1&page=%3


黄瓜 发表于 2015-11-3 18:34:36

RewriteEngine On

# 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /discuz
RewriteRule ^thread-htm-fid-(\d+)((-type-(\d+))*(-page-(\d+))*)*\.html.*$ forum.php?mod=forumdisplay&fid=$1&filter=type&typeid=$4&page=$6
RewriteCond %{QUERY_STRING} ^fid-(\d+)((-.+-(\d+))*\.html)*$
RewriteRule ^thread\.php forum.php?mod=forumdisplay&fid=%1&page=%3
RewriteCond %{QUERY_STRING} ^fid=(\d+)&type=(\d+)$
RewriteRule ^thread\.php forum.php?mod=forumdisplay&fid=%1&filter=type&typeid=%2
RewriteRule ^read-htm-tid-(\w+)(-page-(\d+|e)(-fpage-(\d+))*)*\.html$ forum.php?mod=viewthread&tid=$1&extra=page%3D$5&page=$3
RewriteCond %{QUERY_STRING} ^tid=(\d+)(&page=(\w+)(&fpage=(\d+))*)*$
RewriteRule ^read\.php forum.php?mod=viewthread&tid=%1&extra=page%3D1&page=%3
RewriteCond %{QUERY_STRING} ^tid-(\d+)(-page-(\w+))*\.html$
RewriteRule ^read\.php forum.php?mod=viewthread&tid=%1&page=%3
RewriteCond %{QUERY_STRING} ^tid-(\d+)-ordertype-desc\.html$
RewriteRule ^read\.php forum.php?mod=viewthread&tid=%1&extra=page%3D1&ordertype=1
RewriteCond %{QUERY_STRING} ^f(\d+)\.html$
RewriteRule ^simple/(index\.php)* forum.php?mod=forumdisplay&fid=%1
RewriteCond %{QUERY_STRING} ^t(\d+)(_(\d+))*\.html$
RewriteRule ^simple/(index\.php)* forum.php?mod=viewthread&tid=%1&archiver=1&page=%3
页: [1]
查看完整版本: pw转换dz记录贴,方便后人