The redirect loops often come from a disagreement between WordPress, proxy, HTTPS and cache.
Steps.
- Observer the channel. — Use curl -I or browser tools.
- Compare home/siteurl. — URLs should reflect the final domain.
- Control proxy HTTPS. — Check X-Forwarded-Proto or equivalent configuration.
- Purger cache. — After each structured correction.
Commands
curl -I https://example.com
Key takeaways
- Avoid changing.htaccess and cache plugin at the same time.
- Save the configuration before changing.
See also:. ERR_TOO_MANY_REDIRECTS.