Site SEO AI Auditpor Internet Solutions

Redirect Chains and Loops: How to Find and Fix Them

4 de agosto de 20267 min de lecturaSEO técnico
Redirect Chains and Loops: How to Find and Fix Them

Short answer: a redirect chain is when a URL redirects to another URL that redirects again before reaching the final page; a redirect loop is when the redirects never reach a final page at all. Fix chains by pointing every old URL directly to its final destination and by updating internal links to the final URL. Fix loops by finding the two rules that send traffic back and forth and removing one of them.

What chains and loops look like

A single redirect is normal and healthy. When a page moves, /old-page/ returns a 301 to /new-page/, and visitors and crawlers arrive at the right place in one step.

A chain has two or more hops:

http://example.com/services
  → 301 https://example.com/services
  → 301 https://www.example.com/services
  → 301 https://www.example.com/services/
  → 200

Each hop is a separate request and response. A loop looks similar but never ends:

/pricing/ → 301 /plans/
/plans/   → 301 /pricing/

Browsers give up after a limited number of hops and show an error such as “too many redirects”. Crawlers also stop following after a certain number of hops. Google’s documentation says Googlebot follows up to 10 hops, but that is a ceiling, not a target.

Why chains and loops matter

A loop is simple: the page is unreachable for everyone, so it cannot be indexed and any links to it are wasted. Chains are more subtle, and their cost adds up across a site:

How chains usually form

Almost nobody creates a chain on purpose. They accumulate as a site evolves:

  1. Stacked migrations. A page moved in 2019, again in 2022 and again this year. Each move added one redirect from the previous address instead of updating the older rules.
  2. Separate server rules for each normalisation. One rule forces HTTPS, another adds www, a third adds the trailing slash. A single request for the oldest form passes through all three.
  3. CMS and server both redirecting. The web server redirects HTTP to HTTPS, then WordPress redirects the host to match its site address setting, then a plugin redirects the old slug.
  4. Redirect plugins with overlapping rules, especially after several people have added rules over the years.
  5. Internal links never updated. Menus, footers and old articles still link to addresses that redirect, sometimes through several hops.

How loops usually form

Loops tend to come from two systems that disagree:

How to find every chain and loop on your site

You cannot find these reliably by clicking around, because the browser follows redirects silently. Use tools that show each hop:

  1. Check single URLs with curl. curl -sIL http://example.com/page prints every response in the chain with its status and Location header. Test the four base variants of your home page: HTTP and HTTPS, with and without www.
  2. Crawl the whole site. A crawler records every internal link that leads to a redirect, how many hops it takes and where it ends. This is the only way to see the scale of the problem.
  3. Test the old URL list. After migrations, keep the list of old URLs and run them through the same check. Old URLs with external backlinks matter most.
  4. Check the sitemap. Every URL in the sitemap should return 200 directly. Any redirect there is an error.
  5. Review Search Console. The page indexing report lists redirect errors, which usually means loops, chains that are too long, or redirects to an invalid address.

How to fix redirect chains

The goal is one hop from any old URL to its final destination, and zero hops for internal links.

Situation Before After
Protocol and host HTTP → HTTPS → www (2 hops) HTTP non-www → HTTPS www (1 hop)
Stacked page moves /a → /b → /c (2 hops) /a → /c and /b → /c
Internal menu link Links to /a, reaches /c after 2 hops Links to /c directly (0 hops)
Trailing slash plus host /page → /page/ → www/page/ /page → www/page/ in one step

How to fix redirect loops

Start by recording the full loop with curl so you can see which URLs alternate. Then find which system produces each hop: the response headers often reveal whether the redirect came from the CDN, the web server or the application. Typical fixes:

After fixing a loop, clear the CDN cache and test again from a clean session. Browsers cache 301 responses aggressively, so a loop can appear to persist in your own browser after it has been fixed on the server.

How Site SEO AI Audit finds redirect problems

The audit’s crawl follows every internal link the way a search engine does. Redirect chains appear in the crawl and index area, and internal links that point to redirects appear in the links area, each with the list of affected pages and the hops involved. Because every issue is weighted by how many pages it affects, a chain in your main menu, which touches every page, ranks higher than one old link in a single article. After fixing, you can re-audit and see the change in the score. Plan details are on the pricing page.

Related reading

The bottom line

Every redirect should take one hop, and internal links should take none. Flatten old rules so each old URL points straight to its final page, combine protocol, host and slash normalisation into a single rule, and update links, canonicals and sitemaps. For loops, find which two systems disagree and make one of them stop redirecting.

FAQ

How many redirects in a chain are too many?

Aim for one hop from any old URL and zero hops for internal links. Googlebot follows up to 10 hops, but every hop adds delay and another point of failure, so shorter is always better.

Do redirect chains lose link equity?

Google has said that 3xx redirects do not lose PageRank by themselves. The practical risks are slower pages, wasted crawling and chains that break when one rule in the middle is removed.

Why does my site show “too many redirects”?

That error means a redirect loop. It is most often caused by the server and the CMS disagreeing about www or HTTPS, or by a CDN talking to the origin over HTTP while the origin forces HTTPS.

Should I remove old redirects after some time?

Keep redirects for URLs that still receive traffic or have external links, ideally for as long as you can. Removing them turns those links into 404s. Just make sure each old redirect points straight to the current final URL.

Do I need to update internal links if redirects work?

Yes. Internal links to redirecting URLs make every visitor and crawler take an extra hop. Linking directly to the final URL is faster and removes the dependency on the redirect rule.

#Crawling#Redirects#Status codes#Technical SEO
Revisa tu propio sitio web — gratis.Todos los problemas SEO de tu sitio — y cómo corregir cada uno.
Empieza gratis
Internet Solutions

Más de nuestro equipo

Creadas por Internet Solutions. Prueba nuestros otros productos: cada uno te ahorra tiempo de una forma distinta.

internet-solutions.net ↗
Site SEO AI Audit
Resumen de privacidad

Este sitio web utiliza cookies para ofrecerte la mejor experiencia de usuario posible. La información de las cookies se guarda en tu navegador y realiza funciones como reconocerte cuando vuelves a nuestro sitio web o ayudar a nuestro equipo a comprender qué secciones del sitio te resultan más interesantes y útiles.