Skip to content

Instantly share code, notes, and snippets.

@feiandxs
Created July 6, 2020 03:33
Show Gist options
  • Save feiandxs/696679128e2dede6440766d57b77eda3 to your computer and use it in GitHub Desktop.
Save feiandxs/696679128e2dede6440766d57b77eda3 to your computer and use it in GitHub Desktop.
WordPress启用https后首页无限301跳转问题的解
// 添加在wp-config.php的文件开头
$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment