迪巴拉 发表于 2020-12-28 10:44:44

Discuz伪静态设置后打开显示404 Not Found

伪静态规则是宝塔提供的!宝塔面板也从新启动,自己也搜索相关教程,也都一一尝试。结果还是404 Not Found


伪静态规则:
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;rewrite ^([^\.]*)/article-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 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 ^([^\.]*)/blog-(+)-(+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;rewrite ^([^\.]*)/(fid|tid)-(+)\.html$ $1/index.php?action=$2&value=$3 last;# 其他插件规则建议放在这上边rewrite ^([^\.]*)/(+*)-(+)\.html$ $1/plugin.php?id=$2:$3 last;if (!-e $request_filename) {      return 404;}请大神帮忙看看是服务器的问题还是什么情况~~~
页: [1]
查看完整版本: Discuz伪静态设置后打开显示404 Not Found

创宇盾启航版免费网站防御网站加速服务