Created
July 8, 2020 19:52
-
-
Save michelmany/6c6a1a6e921e4aea8a7f2a8f02e2bb8a to your computer and use it in GitHub Desktop.
Cloudflare WordPress SSL
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
# It will solve the too many redirects issue | |
define('FORCE_SSL_ADMIN', true); | |
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') | |
$_SERVER['HTTPS']='on'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment