nginx下wordpress开启全站https出现所有栏目页为404问题的解决方法

  • 内容
  • 评论
  • 相关

nginxwordpress开启全站https后打开所有的栏目页为404

解决方法:

打开nginx的配置文件nginx.conf,在http和https对应的server{}块中加入

location / {
     try_files $uri $uri/ /index.php?$args;
 }
 # Add trailing slash to */wp-admin requests.
 rewrite /wp-admin$ $scheme://$host$uri/ permanent;

解决问题。

 

https://www.lmdouble.com/2352132056.html

 

上一篇: 下一篇:
关注本站微信公众号


仍未解决?点击远程协助
win10纯净版系统安装教程
关闭
关注本站

扫一扫,关注本站微信公众号