wp-admin redirecting to https, denying login

You need to forward the http:// to https:// to avoid infinite loop.

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
   $_SERVER['HTTPS']='on';

Leave a Comment