wordpress 启用https

1.wordpress后台网址与首页设为https

2.

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