论坛 修改.htaccess加入如下代码:
RewriteEngine On
# 修改以下语句中的 /x 为你的论坛目录地址,如果程序放在根目录中,请将 /x 修改为 /
RewriteBase /x
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(forumdisplay|viewthread|redirect|faq).php forum.php?mod=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(space).php home.php?mod=$1&%1
升级到Discuz!X后 保持UCHOME原链接可正常访问rewrite
RewriteRule ^(.*)/space-(d+)-do-(.+)-(.+)-([0-9]+).html?*(.*)$ $1/home.php?mod=space&uid=$2&do=$3&$4=$5
RewriteRule ^(.*)/space-mtag.html?*(.*)$ $1/group.php
RewriteRule ^(.*)/space-event.html?*(.*)$ $1/home.php?mod=space&do=activity
RewriteRule ^(.*)/space-(.*).html?*(.*)$ $1/home.php?mod=space&do=$2