Fixed: 301 redirect loop on newly restored/cloned site

This helped prevent the “Too Many Redirects” for my main site, but I found that as soon as I tried to visit the WordPress admin ( /wpadmin ) the problem came back.

After digging around, I finally located this declaration in my wp-config.php file:

define('FORCE_SSL_ADMIN', TRUE);

by changing it to false:

define('FORCE_SSL_ADMIN', FALSE);

the redirect loop was resolved and I was able to log in.

Just wanted to add this for anyone else who might be having a similar issue.

1 Like