Discuz教程网

DISCUZX3.0无法实现页面的静态化

[复制链接]
authicon aSewmnVG 发表于 2013-3-29 01:17:56 | 显示全部楼层 |阅读模式
无论用什么方法都无法实现静态化。起初安装了一个7.2版本的论坛,完全可以实现静态,但3.0版本的不管怎么改也是无法实现。之前的论坛的目录是/bbs/的。现在新安装的论坛3.0的是/wenwen/目录下的。

是不是只有根目录才可以实现静态化的啊?还是需要改哪一个的啊?



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 ^(.*)/forum-([0-9]+)-type-([0-9]+).html?*(.*)$ $1/forumdisplay.php?fid=$2&filter=type&typeid=$3&$4

RewriteRule ^(.*)/forum-([0-9]+)-type-([0-9]+)-p-([0-9]+).html?*(.*)$ $1/forumdisplay.php?fid=$2&filter=type&typeid=$3&$4&page=$5&$6


RewriteRule ^(.*)/archiver/((fid|tid)-[w-]+.html)?*(.*)$ $1/archiver/index.php?$2&$4
RewriteRule ^(.*)/tag-(.+).html?*(.*)$ $1/tag.php?name=$2&$3
RewriteRule ^(.*)/rss-([0-9]+).html?*(.*)$ $1/rss.php?fid=$2&auth=%3D$4&page=$3&$4

7.2版本的论坛可以实现,3.0的应该是对应的是



# 将 RewriteEngine 模式打开RewriteEngine On# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /RewriteBase /discuz# Rewrite 系统规则请勿修改RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^topic-(.+).html$ portal.php?mod=topic&topic=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^article-([0-9]+)-([0-9]+).html$ portal.php?mod=view&aid=$1&page=$2&%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 ^blog-([0-9]+)-([0-9]+).html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^archiver/(fid|tid)-([0-9]+).html$ archiver/index.php?action=$1&value=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_-]+).html$ plugin.php?id=$12&%1我把那个路径也删除掉了,改成了/wenwen可是还是无法实现静态化。不知道为什么。
http://www.shenyanghunli.com/wenwen/这是我的安装的3.0的版本。有哪位高手知道该怎么配置静态化才可以的啊?望指点一下。



上一篇:dz 3.0 全局顶置帖子无法在其它板块显示
下一篇:不知道为什么,我的站现在进不去发帖页面
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-4 02:27

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表