wordpress+lnmp出现 404 Not Found nginx
生活随笔
收集整理的這篇文章主要介紹了
wordpress+lnmp出现 404 Not Found nginx
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在本地使用Apache,因此進行重寫規則是.htaccess文件,但在Nginx服務器中此文件不起作用。
只需在網站的虛擬機配置文件中添加如下
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;轉載于:https://www.cnblogs.com/webph/p/6710950.html
總結
以上是生活随笔為你收集整理的wordpress+lnmp出现 404 Not Found nginx的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 两种计算器小程序对比
- 下一篇: [jquery]为jQuery.ajax