Problems¶
If wp-login keep redirecting¶
If you are behind a reverse proxy, add this to wp-config.php before the last require_once :
/** reverse proxy */
if ( (!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) ||
(!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) ) {
$_SERVER['HTTPS'] = 'on';
}
or if that don’t work, add directly at the top of the file :
$_SERVER['HTTPS'] = 'on';