Skip to content

Instantly share code, notes, and snippets.

@kmkmjhyiiiu
Created May 2, 2019 01:49
Show Gist options
  • Save kmkmjhyiiiu/97f59b8b67924a75d91d147e485deca2 to your computer and use it in GitHub Desktop.
Save kmkmjhyiiiu/97f59b8b67924a75d91d147e485deca2 to your computer and use it in GitHub Desktop.
if ever had a too many redirects issue on fresh installation of wordpress - append the following at end of file.
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment