Routing
Troubleshooting "ERR_TOO_MANY_REDIRECTS"
[Image of ERR_TOO_MANY_REDIRECTS browser error screen]
The ERR_TOO_MANY_REDIRECTS error (often shown as "This page isn’t redirecting properly") occurs when your browser gets stuck in an infinite loop of redirects. This means Page A redirects to Page B, which redirects back to Page A, leading back to a previously visited page.
What It Means
Redirects are normal mechanisms used to send visitors from one URL to another. However, when misconfigured, they create a loop. The browser detects this loop and stops, displaying the error.
Common Causes
- Incorrect Server Configuration: Misconfigured rules in server files like
.htaccess(Apache) ornginx.conf(Nginx). - CMS Settings Mismatch: In platforms like WordPress, having different URLs set for the "WordPress Address" and "Site Address".
- CDN / Proxy Issues: Forcing HTTPS on the server while the CDN is also trying to force HTTPS can conflict.
How to Fix (If You Own the Website)
- Check Server Redirect Rules: Carefully examine your
.htaccessfile for conflicting rules, especially those related to HTTPS and www/non-www forcing. - Check CDN/Proxy Settings: Review SSL/TLS settings in your CDN (e.g., Cloudflare's SSL/TLS mode - "Full (Strict)" is generally recommended).
- Clear Server Caches: If you use server-level caching, clear it after making configuration changes.