Skip to the content
Start free

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.

High priority Redirects and status codes

Why it matters #

A redirect should take visitors and bots to a working page in one step. Google documents that 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 forces non-www, or http and https set in two places. Bots keep no cookies, 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 #

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 it looks like, and fixed #

The problem
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.

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 #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
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/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

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

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)

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 #

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 #

MDN: Redirections in HTTP

Questions #

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?

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

More problems in Redirects and status codes

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com