Redirect Chain Checker

Analyse a pasted redirect chain for excess hops, loops, mixed status codes and protocol downgrades.

5Hops
4Redirect responses

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Redirect Chain Checker does

The redirect chain checker on this page will analyse a pasted redirect chain for excess hops, loops, mixed status codes and protocol downgrades. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for diagnosing a slow or failing URL. If you want to cross-check the result, there is another redirect chain checker on FreeToolsWorld.org.

How to use it

  1. Run curl -IL against the original URL, or use a crawler's redirect chain report.
  2. Paste one hop per line as a status code and URL.
  3. Fix any loop first, then collapse the chain to a single hop.
  4. Make sure every redirect in the chain uses the same status code.

How it works

Redirect chains are built by accident rather than design. A site adds an HTTPS redirect, then a www canonicalisation rule, then a path change, each as its own rule — and ends up with three hops where one would do. Each hop is a full round trip for the browser, and Google follows only a limited number before abandoning the request.

Mixed status codes are worse than a longer chain of consistent ones. A single 302 in the middle of a chain of 301s makes the whole path temporary for caching purposes, because the chain is only as permanent as its least permanent link.

A loop is immediately fatal: the browser gives up with ERR_TOO_MANY_REDIRECTS after a handful of hops and the page is simply unreachable. The usual causes are a rule that matches its own output, or two rules that each redirect to the other.

The fix is almost always to collapse the rules rather than reorder them. One redirect from http://example.com/old to https://www.example.com/new handles the protocol, the host and the path in a single hop. Rules that each handle one dimension will always chain.

To get the data for this, use curl with -IL, which prints each hop and its status, or a crawler's redirect report.

When to use it

  • Diagnosing a slow or failing URL.
  • Auditing redirects after a migration.
  • Finding redirect loops.
  • Collapsing accumulated redirect rules into one.

Common mistakes to avoid

  • Adding a new redirect rule rather than updating the existing one, which lengthens the chain.
  • Mixing 301 and 302 in one chain, which makes the whole path temporary.
  • Redirecting to a URL that then 404s, which wastes the hop and still fails.

Frequently asked questions

How many redirects is too many?

More than one is worth fixing, and Google follows only a limited number of hops before giving up. Collapse the chain so the original URL points straight at the final destination.

Does a redirect chain hurt SEO?

It costs round trips, risks Google abandoning the chain, and a 302 anywhere in it makes the whole path temporary for caching and signal purposes. One clean 301 is always better.

What causes a redirect loop?

Usually a rule that matches its own output, or two rules that redirect to each other. The browser gives up after a few hops with ERR_TOO_MANY_REDIRECTS.

Related tools

See all seo tools →