由於我是用cf實現的ssl協議,所以
解決方法:
define('WP_HOME','http://www.chenlincai.com');
define('WP_SITEURL','http://www.chenlincai.com');
把www.chenlincai.com换成你的域名
其次:找到代碼 @package WordPress,在其後面加上
$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
保存即可
test