What is a Redirect Loop? Causes & Fixes
Definition
A redirect loop happens when URL A redirects to B, and B eventually redirects back to A — directly or through a longer chain. Because the destination never resolves, browsers detect the loop and abort with an error like "This page isn't redirecting properly" (Firefox) or "ERR_TOO_MANY_REDIRECTS" (Chrome).
Common causes
- HTTP ↔ HTTPS misconfiguration — HTTPS redirects to HTTP because of a misconfigured load balancer or proxy.
- www ↔ non-www loops — both versions try to be canonical at the same time.
- Trailing slash inconsistencies —
/pageredirects to/page/while/page/redirects back to/page. - Auth or session redirects — login pages redirect to a destination that bounces back to login because the cookie didn't persist.
- CMS or plugin conflicts writing competing redirect rules.
How to find and fix
- Use a redirect checker to follow the entire chain and visualize the loop.
- Inspect server-level redirect rules (.htaccess, nginx, CDN edge rules) for conflicting directives.
- Audit application-level redirects (middleware, framework router) separately from infrastructure rules.
- Scan your site to detect URLs that fail to resolve, then trace each one back to its loop.
Redirect loops break the page entirely — every visitor and every crawler gets the error. They are easy to fix once spotted, so monitor for them after every redirect rule change.
Related terms
404 Error
What happens when a page can't be found — and how it affects SEO.
301 Redirect
The permanent redirect that preserves link equity and guides users.
Crawl Budget
How search engines allocate resources to crawl your site — and why broken links waste it.
Broken Link
A hyperlink that no longer leads to its intended destination.
Redirect Chain
Multiple redirects in sequence that slow down pages and dilute SEO value.
Link Rot
The gradual decay of links over time as pages move or disappear.