“Too many redirects” ONLY when trying to access wp-admin page

I found a solution that fixed my issue.

Sources:

A.) https://sharpten.com/blog/2018/01/17/wordpress-stuck-many-redirects-error-loop-using-ssl.html

B.) (Sublink within A) https://wordpress.org/support/article/administration-over-ssl/

Excerpt:
Adding the following lines of code at the end of my wp-config.php file resolved the redirect conflict.

if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
   $_SERVER['HTTPS']='on';

Leave a Comment