修改 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


基础教程推荐
- WordPress在其他PHP文件中使用wp_config.php变量连接到数据库 2023-10-08
- php – 如何在wordpress插件中获取会话变量 2023-10-08
- WordPress致命错误:在1832行的wp-includes / wp-db.php中,允许的内存大小为536870912字节(试图分配77个字节) 2023-10-08
- 64MB内存VPS安装Lighttpd-SQLite-PHP搭建WordPress博客教程 2023-10-08
- 【wordpress】wordpress插件之自动采集发布工具 2023-10-08
- PHP-WordPress:从数据库中检索值 2023-10-08
- PbootCMS伪静态配置教程以及各web容器配置规则 2023-07-08
- 织梦dedecms首页列表页ajax无限下拉加载瀑布流效果 2022-06-23
- dedecms支付宝支付成功后发送邮件通知站长的方法 2023-07-09
- linux-使用wget在WordPress上进行身份验证 2023-10-08