Add this code to wp-config.php to stop redirect loops caused by SSL termination on a proxy or load balancer:
1 2 3 |
/** SSL termination fix **/ if (array_key_exists('HTTP_X_FORWARDED_PROTO',$_SERVER) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on'; |