Skip to content

Instantly share code, notes, and snippets.

@michelmany
Created July 8, 2020 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelmany/6c6a1a6e921e4aea8a7f2a8f02e2bb8a to your computer and use it in GitHub Desktop.
Save michelmany/6c6a1a6e921e4aea8a7f2a8f02e2bb8a to your computer and use it in GitHub Desktop.
Cloudflare WordPress SSL
# 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