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);