After move WordPress modify permalink some page display 404 in Nginx.
2016-11-25 11:31
330 查看
In nginx conf folder create wordpress.conf and Paste below code:
location / {
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
My nginx config file locaiton: data/server/nginx/conf. below root line,add ( or direct paste above code below root line):
include wordpress.conf;
And restart nginx it will effective.
service nginx restart
location / {
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
My nginx config file locaiton: data/server/nginx/conf. below root line,add ( or direct paste above code below root line):
include wordpress.conf;
And restart nginx it will effective.
service nginx restart
相关文章推荐
- ubuntu 下 wordpress 设置 Permalink 为 自定义结构后出现404页面 nginx - 404 not found page for permalinks
- Error:Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows .....
- [Nuxt] Display Vuex Data Differently in Each Page of Nuxt and Vue.js
- ORA-12838: cannot read/modify an object after modifying it in parallel
- How to create your own custom 404 error page and handle redirect in SharePoint
- nginx php页面 error_page 404不起作用解决
- how to display different title in one master page
- Nginx支持WordPress3.0.1的永久链接(Permalink)
- Embedded image missed after moving page to another space in Confluence
- 解决Nginx下WordPress后台404的问题
- how to display different title in one master page
- ORA-12838: cannot read/modify an object after modifying it in parallel
- wordpress配置固定链接nginx访问404问题解决方法
- Nginx配置https的wordpress站点,wp-content目录下资源404解决方案
- ORA-12838: cannot read/modify an object after modifying it in parallel
- Setting Page.Header.Title in the codeBehind causes an UpdatePanel to not render after a callback
- linode WordPress Permalink .htaccess 404 httpd.conf
- pagination中的afterPageText/displayMsg
- wordpress 在Nginx服务器设置固定链接后出现404问题
- How to redirect to login page after cookie expires in Angular JS?