|
大佬說404 not found是偽靜態配置的問題,之前配置過
感覺可能是因為這個問題出現了好幾個bug
應該是配置成功了,可是不知道為什么沒生效!
QQ截圖20220826164519.png (84.78 KB, 下載次數: 15)
下載附件
2022-8-27 20:05 上傳
后臺點擊【勾選】或者【取消】都沒反應,
下圖是寶塔的配置
復制的是:Nginx Web Server
- rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
- rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
- rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
- rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
- rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.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-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
- rewrite ^([^\.]*)/archiver/(fid|tid)-([0-9]+)\.html$ $1/archiver/index.php?action=$2&value=$3 last;
- if (!-e $request_filename) {
- return 404;
- }
復制代碼
QQ截圖20220826175333.png (95.23 KB, 下載次數: 16)
下載附件
2022-8-27 20:05 上傳
感覺也沒錯啊 ,不知道哪里出現了問題
求大佬指點!!!
|
|