Error fix

How to fix “Redirect loop detected

Requests bounce between URLs without reaching a stable page—often conflicting canonicalization rules.

Updated Apr 20, 2026

Tools that help with this

Fastest fix

Start here first. Step 1 fixes most cases—then work down the list.

  1. Print the redirect chain with curl -IL or the redirect checker tool.
  2. Consolidate rules so one layer owns canonical URL policy.
  3. Add tests for top entry URLs after deploy.

What this means

Each hop returns another redirect until a client limit is hit. The chain never settles on a 200 response.

Common causes

  • HTTPS and host rules

    http→https and apex↔www both fire in a circle.

  • App middleware

    Auth or locale redirects send the user back to the starting URL.

Step-by-step fix

  1. Break the cycle

    1. Print the redirect chain with curl -IL or the redirect checker tool.
    2. Consolidate rules so one layer owns canonical URL policy.
    3. Add tests for top entry URLs after deploy.

FAQ

Infinite 301 between two hosts?
Pick a single canonical host and 301 everything else once.
Loop only when logged in?
Fix session cookie scope and post-login redirect targets.
CDN + origin both redirect?
Disable one side’s redirect or use origin pull without double HTTPS.

Still stuck? Try these related fixes next.

Edit your error

Tweak the message and run again—we'll match an existing fix or generate a new page.

Original error message
redirect loop detected
Fix another errorHTTP status codesURL status checkerRedirect checkerAll tools