修改 nginx 配置文件 这个配置文件是你配置你网站站点的文件比如我修改的就是blog.conf 这个文件server {listen 80;server_name blog.onespot.website www.onespot.website onespot.website;root /var/www/html/;...
修改 nginx 配置文件 这个配置文件是你配置你网站站点的文件
比如我修改的就是blog.conf 这个文件
server {
listen 80;
server_name blog.onespot.website www.onespot.website onespot.website;
root /var/www/html/;
#index index.html index.htm index.php;
index index.html index.htm index.php default.html default.htm default.php;location / {
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}location ~ .*\.(js|css)?$
{
expires 12h;
}location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
本文标题为:wordpress修改固定链接后404
基础教程推荐
- centos 7下安装xampp,并使用wordpress搭建站点 2023-10-08
- ThinkPHP Apache和Nginx伪静态规则整理,WordPress固定链接伪静态设置教程 2023-10-08
- wordpress formatting.php – 修复双破折号 2023-10-08
- WordPress总裁主题CeoMax最新版设置教程 2023-10-08
- 怎么安装使用PbootCMS网站模板 2023-07-09
- php – 如何将wordpress数据库中的缩略图转换为外部页面 2023-10-08
- 搭建WordPress博客程序库 2023-10-08
- 「WordPress 技巧」:如何修改 WordPress 数据库前缀 2023-10-08
- pbootcms网站容易被攻击和被黑吗? 2023-07-08
- 【wordpress】wordpress插件之自动采集发布工具 2023-10-08
