Created
July 6, 2020 03:33
-
-
Save feiandxs/696679128e2dede6440766d57b77eda3 to your computer and use it in GitHub Desktop.
WordPress启用https后首页无限301跳转问题的解
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 添加在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