WordPress配置https后重定向次数过多(转载)

转自子痕的博客:https://www.mzihen.com/wordpress-https-too-many-redirects/

方法1、安装插件

Really Simple SSLEasy HTTPS Redirection,可以完美解决配置https后不能访问的问题。

方法2、修改wordpress根目录下的wp-config.php,在 <?php 后其添加如下代码

    $_SERVER['HTTPS'] = 'on';
    define('FORCE_SSL_LOGIN', true);
    define('FORCE_SSL_ADMIN', true);

 

posted @ 2021-12-08 17:55  总统先生  阅读(381)  评论(0编辑  收藏  举报