wordpress后台404页面
生活随笔
收集整理的這篇文章主要介紹了
wordpress后台404页面
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
就在剛剛,boss需要看公司網站后臺,網站是用wordpress搭的,發現全是404,蛋疼,于是google,下面是解決辦法:
location / {if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;}if (-f $request_filename/index.php){rewrite (.*) $1/index.php;}if (!-f $request_filename){rewrite (.*) /index.php;} } rewrite /wp-admin$ $scheme://$host$uri/ permanent;加上這句rewrite /wp-admin$ $scheme://$host$uri/ permanent,然后重啟nginx就好了
轉載于:https://www.cnblogs.com/uglyliu/p/6127031.html
總結
以上是生活随笔為你收集整理的wordpress后台404页面的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: (十七)linux网络命令 vconfi
- 下一篇: 机器人防火墙:人机识别在应用安全及风控领