修改 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
基础教程推荐
- Thinkphp5结合layer弹窗定制操作结果页面 2022-08-16
- dedecms织梦复制https链接网站图片无法本地化的解决办法 2022-06-23
- PbootCMS调用全站所有栏目最新文章的写法 2023-07-09
- 织梦dedecms不显示未审核tag标签文档的的方法 2022-11-04
- PbootCMS的阿里云短信发送类 2023-07-09
- PbootCMS伪静态配置教程以及各web容器配置规则 2023-07-08
- 织梦dedecms后台添加变量提示Request var not allow 2023-07-08
- pbootcms文章插入图片不固定宽高的办法 2023-07-08
- 织梦采集标题不完整的解决方法,修改标题长度 2022-07-14
- dedecms织梦全局变量调用方法总结 2023-07-08