Discuz!论坛首页和分区设置板块横排
玻璃屋女孩 曾写过一篇非常详细的关于 伪静态 的教程。我发现在apache 伪静态规则 漏了一条,RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^article-(.+)/.html$ portal.php?mod=view&aid=$1&%1复制代码导致很多用户的门户文章伪静态后出错,找不到页面。经测试发现是少了一条门户文章的规则。在apache下的规则为:# Rewrite 系统规则请勿修改 漏掉的文章链接:portal.php?mod=view&aid=numRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^article-(.+)/.html$ portal.php?mod=view&aid=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^topic-(.+)/.html$ portal.php?mod=topic&topic=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^forum-(/w+)-([0-9]+)/.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)/.html$ forum.php?mod=viewthread&tid=$1&extra=page/%3D$3&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^group-([0-9]+)-([0-9]+)/.html$ forum.php?mod=group&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^space-(username|uid)-(.+)/.html$ home.php?mod=space&$1=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^archiver/(fid|tid)-([0-9]+)/.html$ archiver/index.php?action=$1&value=$2&%1复制代码其他的,以玻璃屋女孩的教程为准。希望对大家有帮助。