---
title: "Redirects that loop or never reach a page"
description: "The address redirects in a circle, through too many hops or to an address that fails, so visitors see an error and search engines cannot index it."
url: https://ursy.com/issues/redirect-loops/
updated: 2026-11-30T12:53:03+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/redirect-loops/
---

# Redirects that loop or never reach a page

> The address redirects in a circle, through too many hops or to an address that fails, so visitors see an error and search engines cannot index it.

The address [redirects](https://ursy.com/wiki/redirect/) in a circle, through too many hops or to an address that fails, so visitors see an error and [search engines](https://ursy.com/wiki/search-engine/) cannot index it.

## Why it matters {#why-it-matters}

A redirect should take visitors and [bots](https://ursy.com/wiki/bot-web-robot/) to a working page in one step. [Google](https://ursy.com/wiki/google/) documents that [Googlebot](https://ursy.com/wiki/googlebot/) follows up to 10 redirect hops, then gives up and reports a redirect error. A loop never ends at all, and a chain that ends on an error leads nowhere. Browsers give up too and show an error.

Loops usually come from two rules that disagree, for example the server forcing www while the CMS or [CDN](https://ursy.com/wiki/cdn/) forces non-www, or http and https set in two places. Bots keep no [cookies](https://ursy.com/wiki/cookie/), so a site that relies on a cookie to break a loop still loops for them. A way of typing your address (with or without www, http or https) that does not reach a page is the same dead end.

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

Follow the chain hop by hop with the Redirect Checker. Find the two rules that send the address back and forth, and remove one. Point every redirect straight at the final page, and make sure that page answers 200.

Make every version of your address, with or without www and with http or https, redirect in one step to your main version. Then update links that point into the chain.

1. Run the address through the Redirect Checker.
2. Find the rules behind each hop: server, CMS, CDN or plugin.
3. Remove the rule that sends it back, and point to the final page.
4. Test every version of the address again.

### What the problem looks like {#what-the-problem-looks-like}

```
https://example.com/      301 -> https://www.example.com/
https://www.example.com/  301 -> https://example.com/
https://example.com/      301 -> https://www.example.com/
... (ERR_TOO_MANY_REDIRECTS)
```

The server forces www while the CMS or CDN forces no www, so the address never reaches a page.

### What it looks like fixed {#what-it-looks-like-fixed}

```
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^ https://www.example.com%{REQUEST_URI} [L,R=301]
```

One rule sends every version to https://www, in one hop. The CMS and the CDN must use the same main version.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
My website [your website address] runs on [your platform, e.g. WordPress on Apache behind Cloudflare]. A check says [the page address] redirects in a loop, through too many hops or to an address that fails. First follow the chain hop by hop for the page and for every version of my home address (http or https, with or without www), listing each status and Location (or ask me to paste them). Tell me in plain words which two rules disagree and where each lives: the server, the CMS settings, a plugin or the CDN. Then give me the fix: one main version, with every other version redirecting to it in a single 301 hop, and the page answering 200 at the end. Rules: back up first, remove the conflicting rule rather than adding another, and keep page addresses the same. Give me exact steps or code and where they go. Finally, tell me to re-check with the URSY.com Redirect Checker at ursy.com/redirect-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

Make both addresses in Settings, General match the main version exactly, with https and the same www choice as your server rule.

### Your server or hosting {#your-server-or-hosting}

Keep one place that forces https and www, and remove duplicates from .htaccess, the nginx configuration and the hosting panel.

### Your CDN (for example Cloudflare) {#your-cdn-for-example-cloudflare}

With Cloudflare, the Flexible SSL mode plus a server that forces https causes a classic loop. Use Full (strict) with a valid certificate on the server, and check page or redirect rules.

## Check it is fixed {#check-it-is-fixed}

Run every version of the address through the URSY.com Redirect Checker (/redirect-checker/). Each should reach the final page in at most one hop and end on 200.

## Official source {#official-source}

[MDN: Redirections in HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections)

## Questions {#questions}

### Why does it work for me but not for bots? {#why-does-it-work-for-me-but-not-for-bots}

Your browser may hold a cookie or a cached redirect that breaks the loop. Bots keep no cookies, so they still loop.

### Should I use www or not? {#should-i-use-www-or-not}

Either is fine for search. What matters is choosing one and redirecting every other version to it.

---

**Cite this page:** Redirects that loop or never reach a page. URSY.com. Updated 30 November 2026. https://ursy.com/issues/redirect-loops/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[Redirects that loop or never reach a page](https://ursy.com/issues/redirect-loops/), URSY.com`. One section: add its id, for example https://ursy.com/issues/redirect-loops/#section-id (every heading above has one).

Section links: https://ursy.com/citations/17/#p-5655 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/redirect-loops/
- As JSON: https://ursy.com/issues/redirect-loops/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
