请教phpwind转discuz的伪静态规则
最近想把PW转向DZ,原来用的伪静态,环境是LNMP ,希望转换后URL地址能保持不变,DZ上也找不到这样转换的伪静态规则,请问军哥能不能写一下呢? 这里付上Apache Web Server(虚拟主机用户)规则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 伪静态不会写
这个好像是没法实现,dz的伪静态好像都是在程序上关联很大
页:
[1]