wordpress开启https后提示”重定向的次数过多”的临时解决方案

打开根目录的 wp-config.php ,添加如下代码

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

Posted: 二月 22nd, 2019


Subscribe for email updates

发表评论

Note: Wrap all of your code blocks in <code>...</code> and replace < and > with &lt; and &gt;, respectively.