discuz 3.2 伪静态规则错误
我安装的是3.2版本discuz,linmp自带discuz我实验了好多次,都无法正确显示,后来参考apache改了,果然就好了,建议discuz后面带上版本号。。。另外分享下我的discuz规则吧,,,
rewrite ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^(.*)/article-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2 last;
rewrite ^(.*)/article-(+)\.html$ $1/portal.php?mod=list&catid=$2 last;
rewrite ^(.*)/forum-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^(.*)/thread-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^(.*)/group-(+)-(+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^(.*)/(+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
复制上面代码另存为discuz.conf 覆盖原来discuz即可,适合3.2版本。 不是我里面自带的是错的,是你自己用错了,discuz 和discuzx本来就是不同的版本,你说的3.2是discuzx,添加虚拟机室选择伪静态肯定要选择discuzx,而不是discuz
页:
[1]