ubuntu 下 wordpress 设置 Permalink 为 自定义结构后出现404页面 nginx - 404 not found page for permalinks
来源:互联网 发布:内置软件卸载器 编辑:程序博客网 时间:2024/04/19 08:33
1. 先打开 nginx 配置文件 default
cd /etc/nginx/sites-available/
2. 编辑 default 文件
sudo vi default
3. server 内的 location /{ ... } 加入
try_files $uri $uri/ /index.php?$args;
完成如下:
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. #try_files $uri $uri/ =404; try_files $uri $uri/ /index.php?$args; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules }
0 0
- ubuntu 下 wordpress 设置 Permalink 为 自定义结构后出现404页面 nginx - 404 not found page for permalinks
- 解决wordpress出现404 not found nginx
- After move WordPress modify permalink some page display 404 in Nginx.
- wordpress 在nginx服务器下重写路由,解决设置固定链接后出现404错误
- Wordpress深度自定义tag页面Permalink的方法
- [wordpress & nginx]除了homepage其他子页面全是404 not found
- linode WordPress Permalink .htaccess 404 httpd.conf
- wordpress 在Nginx服务器设置固定链接后出现404问题
- CodeIgniter在nginx下404 not found
- wordpress自定义404页面
- 关于Ubuntu系统下Apache2的404自定义页面设置
- wordpress设置“固定链接”后,页面404错误的解决方法
- WordPress设置“固定链接”后,页面404错误的解决方法
- NGINX自定义404页面设置方法
- nginx如何设置自定义404页面
- weblogic 部署后出现Error 404--Not Found
- iis发布后出现 .woff 404 (Not Found)的问题
- wordpress 中文 固定链接 not found 404
- POj1458
- PLSQL developer +oracle client配置链接远程数据库
- Cmake与gdb
- 原生javascript基础知识点(2)复习与回顾
- VS2010错误集锦
- ubuntu 下 wordpress 设置 Permalink 为 自定义结构后出现404页面 nginx - 404 not found page for permalinks
- 一些oracle函数
- Android 动态设置margin
- Java生成二维码
- Hibernate总结
- 理解TelephonyProvider与应用ApnEditor的关系
- 启动Eclipse 报错:java was started but returned exit code = 13
- android识别 单击和双击事件
- 我的代码