---
title: "Redirect loop"
description: "A redirect loop is when addresses redirect to each other in a circle, so no page loads. Causes, how Google treats it and how to fix it."
url: https://ursy.com/wiki/redirect-loop/
updated: 2026-11-24T22:47:35+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/redirect-loop/
---

# Redirect loop

> A redirect loop is when addresses redirect to each other in a circle, so no page loads. Causes, how Google treats it and how to fix it.

**A redirect loop is a fault where one web address sends the visitor to another, and that address (directly or after a few steps) sends them back again, so no page ever loads.** Browsers give up and show an error such as “too many redirects”. [Search engine](https://ursy.com/wiki/search-engine/) crawlers give up too, so the page drops out of search and AI answers until the loop is fixed.

## What is a redirect loop? {#what-is-a-redirect-loop}

A [redirect](https://ursy.com/wiki/redirect/) tells a browser “this page lives somewhere else now”. It is usually a 3xx [HTTP status code](https://ursy.com/wiki/http-status-code/) with a Location header pointing to the new [URL](https://ursy.com/wiki/url/). A loop happens when those instructions point in a circle. The simplest version is two addresses: A sends you to B, and B sends you back to A. Longer loops pass through 3, 4 or more addresses before they return to the start.

MDN’s guide to [redirections in HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections) describes it as a loop that will never finish, where no page will ever be found. It says that if the server can spot the loop it often answers with a 500 Internal Server Error. When the loop spans several servers that each see only their own part, the browser has to detect it and show an error instead.

## How is it different from a redirect chain? {#how-is-it-different-from-a-redirect-chain}

A [redirect chain](https://ursy.com/wiki/redirect-chain/) is a line of hops that ends on a real page: A to B to C, and C loads. It is slow and wasteful, but it works. A loop has no end. Both show up in the same reports, and a chain that keeps growing over the years can turn into a loop when someone adds one rule too many.

## Why does it matter for search? {#why-does-it-matter-for-search}

[Google](https://ursy.com/wiki/google/)’s page on [HTTP status codes and network errors](https://developers.google.com/search/docs/crawling-indexing/http-network-errors) says its crawlers follow up to 10 redirect hops by default. After that they stop. A loop never reaches a final page, so [Googlebot](https://ursy.com/wiki/googlebot/) has nothing to index. The Search Console [Page indexing report](https://support.google.com/webmasters/answer/7440203) lists “a redirect loop” as one of the causes of a “Redirect error”, next to chains that are too long and redirect URLs that grow past the maximum length.

The cost spreads. Every visit to a looping address wastes part of your [crawl budget](https://ursy.com/wiki/crawl-budget/). Any [backlinks](https://ursy.com/wiki/backlinks/) pointing at the broken address pass no [link equity](https://ursy.com/wiki/link-equity/) to a working page. If the loop [hits](https://ursy.com/wiki/hit-analytics/) a whole section, every page in it can fall out of the [search engine index](https://ursy.com/wiki/search-engine-index/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

An [AI crawler](https://ursy.com/wiki/ai-crawler/) such as [GPTBot](https://ursy.com/wiki/gptbot/) or a [live fetcher](https://ursy.com/wiki/live-fetcher/) working for a chat user requests pages over plain [HTTP](https://ursy.com/wiki/http/), just like a browser. If it meets a loop, it gets no text. The assistant then answers from other sources, or from older copies of your page. A loop on a product or price page means an AI answer may quote a competitor instead of you. You can see which [bots](https://ursy.com/wiki/bot-web-robot/) reached a page, and what status they got, with our [AI bot checker](https://ursy.com/ai-bot-checker/).

## What causes a redirect loop? {#what-causes-a-redirect-loop}

Most loops come from 2 rules that each look fine on their own but fight each other:

- **HTTP and HTTPS fighting.**  One layer forces HTTPS, another layer behind it thinks the request is still HTTP and sends it round again. WordPress’s own [HTTPS guide](https://developer.wordpress.org/advanced-administration/security/https/) warns that forcing SSL behind a reverse proxy can send every request into an infinite loop unless WordPress is told to read the X-Forwarded-Proto header. See [HTTPS vs HTTP](https://ursy.com/wiki/https-vs-http/) and [SSL certificate](https://ursy.com/wiki/ssl-certificate/).
- **www and non-www fighting.**  The server sends www to bare domain, while the site settings send the bare domain back to www.
- **[Trailing slash](https://ursy.com/wiki/trailing-slash/) rules.**  One rule adds a slash, a plugin removes it.
- **Old rules left behind.**  After a [site move](https://ursy.com/wiki/move-a-website-without-losing-traffic/), a rule sends old to new, and a later rule sends new back to old.
- **Mixed [redirect types](https://ursy.com/wiki/redirect-types/).**  MDN notes that HTTP redirects run first, then JavaScript, then meta refresh. If someone changes the HTTP rule but forgets the meta refresh, the two can point at each other.
- **Cookies and sign-in.**  A page sends logged-out users to a login page, and the login page sends them back because a [cookie](https://ursy.com/wiki/cookie/) is broken or blocked.
- **Cached redirects.**  A [CDN](https://ursy.com/wiki/cdn/) or [edge cache](https://ursy.com/wiki/edge-cache/) keeps serving an old redirect after the origin has changed. A [cache purge](https://ursy.com/wiki/cache-purge/) often clears it.

## A worked example {#a-worked-example}

A small shop moves to HTTPS. In the server’s [.htaccess file](https://ursy.com/wiki/htaccess-file/) it adds a rule: “if not HTTPS, send to https://”. The site sits behind a proxy that ends the secure connection and talks to the server over plain HTTP. The server never sees HTTPS, so it redirects every request. The proxy passes the new HTTPS request back as HTTP. The browser goes round until it gives up.

| Hop | Address asked for | Answer |
| --- | --- | --- |
| 1 | https://shop.example/ | 301 to https://shop.example/ |
| 2 | https://shop.example/ | 301 to https://shop.example/ |
| 3 to 10 | the same | the same |
| 11 | stops | browser error, crawler gives up |

The fix is to check the forwarded header the proxy sets, not the raw connection, before redirecting. After that, hop 1 returns 200 and the page loads.

## Common mistakes {#common-mistakes}

- Testing only in your own browser. Your browser may have cached a 301 or stored an HSTS rule, which MDN’s [Strict-Transport-Security page](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security) says makes the browser swap http for https itself. Test in a private window or with a tool.
- Setting the same redirect in 3 places: server, plugin and CDN. Keep each rule in one place.
- Pointing a [canonical tag](https://ursy.com/wiki/canonical-tag/) at an address that redirects back. That is not a hard loop, but it sends mixed signals.
- Leaving [internal links](https://ursy.com/wiki/internal-linking/) and your [XML sitemap](https://ursy.com/wiki/xml-sitemap/) pointing at redirecting addresses.

## How to check it {#how-to-check-it}

1. Paste the address into our [redirect checker](https://ursy.com/redirect-checker/). It lists every hop and its status code, and flags a loop. Our [guide to the redirect checker](https://ursy.com/guides/how-to-use-redirect-checker/) explains the results.
2. Look at the Location headers with the [HTTP header checker](https://ursy.com/http-header-checker/), so you can see which layer sends each hop.
3. Open the [Page indexing report](https://ursy.com/wiki/page-indexing-report-index-coverage/) in [Google Search Console](https://ursy.com/wiki/google-search-console/) and filter for “Redirect error”. Use [URL inspection](https://ursy.com/wiki/url-inspection/) on one address to confirm what Google sees.
4. Run the [sitemap checker](https://ursy.com/sitemap-checker/) and the [broken link checker](https://ursy.com/broken-link-checker/) so sitemaps and links point straight at final pages.
5. Write clean new rules with the [redirect generator](https://ursy.com/webmaster-tools/redirect-generator/). Our [redirect monitor](https://ursy.com/pro/redirect-monitor/) (Pro) will watch for new loops after changes.

## Questions {#questions}

### How many redirects is too many? {#how-many-redirects-is-too-many}

Google follows up to 10 hops. [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4), the HTTP standard, says a client should detect and step in on “infinite” loops, and notes that an older version suggested a limit of 5. Aim for 1 hop.

### Will clearing cookies fix it? {#will-clearing-cookies-fix-it}

Only when a broken cookie causes the loop. If the loop is in the server rules, every visitor and every crawler sees it.

### Does a loop hurt the rest of the site? {#does-a-loop-hurt-the-rest-of-the-site}

It stops only the looping addresses from loading. But if those are your home page or a whole category, the effect on [organic traffic](https://ursy.com/wiki/organic-traffic/) can be large.

## Related words {#related-words}

- [Redirect chain](https://ursy.com/wiki/redirect-chain/)
- [301 vs 302 redirect](https://ursy.com/wiki/301-vs-302-redirect/)
- [Page with redirect](https://ursy.com/wiki/page-with-redirect/)
- [Crawl error](https://ursy.com/wiki/crawl-error/)

## Sources {#sources}

- [MDN: Redirections in HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections), checked 24 November 2026
- [Google Search Central: How HTTP status codes and network errors affect Google Search](https://developers.google.com/search/docs/crawling-indexing/http-network-errors), checked 24 November 2026
- [Search Console Help: Page indexing report](https://support.google.com/webmasters/answer/7440203), checked 24 November 2026
- [RFC 9110: HTTP Semantics, section 15.4 Redirection 3xx](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4), checked 24 November 2026
- [WordPress Developer Resources: HTTPS](https://developer.wordpress.org/advanced-administration/security/https/), checked 24 November 2026
- [MDN: Strict-Transport-Security](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security), checked 24 November 2026

*Updated 24 November 2026 by URSY.*
