Instantly share code, notes, and snippets.

Embed
What would you like to do?
Prevent redirect loop behind reverse proxy (wp-config.php)
if (
isset( $_SERVER['HTTP_X_FORWARDED_PROTO']) &&
'https'== $_SERVER['HTTP_X_FORWARDED_PROTO']) {
$_SERVER['HTTPS']='on';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment