# Redirect loops

> Trace a redirect loop across your CDN, server, and CMS, fix the conflicting rule, and verify the original URL reaches a stable destination.

Canonical: https://scaplet.com/seo-issues/redirect-loops

Guide SEO issue · Redirects

Trace a redirect loop across your CDN, server, and CMS, fix the conflicting rule, and verify the original URL reaches a stable destination.

5 min

read

5

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

A redirect loop occurs when URL rules send a request back to a URL it has already visited, so the browser never reaches a page. Trace the full sequence of `Location` headers, find the two or more rules that conflict, and change one rule so the request reaches a final page or a real 404. Test the exact public URL after clearing caches.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fredirect-loops%20(%22Redirect%20loops%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fredirect-loops%20(%22Redirect%20loops%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fredirect-loops%20(%22Redirect%20loops%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fredirect-loops%20(%22Redirect%20loops%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 5 minutes.

1. [Capture the cycle 01](#capture-the-cycle)
2. [Fix the rule conflict, not just the visible URL 02](#fix-the-rule-conflict-not-just-the-visible-url)
3. [A production-safe repair sequence 03](#a-production-safe-repair-sequence)
4. [Verify the destination across clients 04](#verify-the-destination-across-clients)

_01_How it works

## Capture the cycle

A loop can be as simple as `/old` redirecting to `/new` while `/new` redirects back to `/old`. It can also span host, protocol, locale, slash, or application rules. RFC 9110 says a client SHOULD detect and intervene in cyclical redirections, which is why a browser gives up with an error such as 'too many redirects'. That message does not identify which layer owns the conflicting rule.

Test with GET as well as a browser. Some infrastructure handles HEAD requests differently, and a redirect can depend on cookies, locale, or query parameters. If the loop appears only for one user segment, preserve those request details while reproducing it.

1. 01

### Reproduce outside your logged-in session

Open the failing URL in a private window and record the starting host, protocol, path, and [query string](/glossary/url-parameters). Confirm whether the problem affects one route or the whole site.
2. 02

### Inspect every redirect response

In DevTools Network, enable Preserve log and reload. For a command-line trace, run `curl -sS -D - -o /dev/null --max-redirs 10 -L https://example.com/path`. Follow the `Location` values until a URL repeats or curl stops at its redirect limit; curl's default limit is 50 redirects, and `--max-redirs` changes it.
3. 03

### Write the cycle down

Record each source, status, and target in order, including whether the host changes. A repeated URL identifies the cycle; the adjacent rules that disagree are the likely repair point.
4. 04

### Compare layers

Check CDN or proxy rules, web server configuration, application middleware, CMS redirects, and host-level [HTTPS](/glossary/https) settings. One layer may enforce HTTPS while another sends the request back to HTTP.

_02_Typical loops and the rule to inspect

## Fix the rule conflict, not just the visible URL

Cycle pattern

### HTTP → HTTPS → HTTP

Likely conflict

Proxy reports the wrong scheme, or an origin rule forces HTTP

Repair direction

Set the canonical scheme once and make the proxy-to-origin scheme handling consistent.

Cycle pattern

### www → non-www → www

Likely conflict

Host normalization is configured in two layers with different targets

Repair direction

Choose one hostname and update all host redirects to agree.

Cycle pattern

### Slash → no slash → slash

Likely conflict

CMS and server disagree about the canonical path form

Repair direction

Pick one path convention and make the application and server emit the same final URL.

Cycle pattern

### Old path → new path → old path

Likely conflict

A legacy rule conflicts with the current route or CMS mapping

Repair direction

Remove the obsolete rule or map the old source directly to the current destination.

Cycle pattern

### Locale A → locale B → locale A

Likely conflict

Automatic locale detection conflicts with explicit locale paths or cookies

Repair direction

Keep explicit localized URLs stable and avoid redirecting a URL back based only on a changing preference.

Cycle pattern

### Login or consent page repeats

Likely conflict

Session, cookie, or authentication state is not being set or recognized

Repair direction

Check cookie domain, secure settings, proxy headers, and the intended access flow before changing SEO redirects.

**Do not add another redirect to break a redirect**Adding a rule at a different layer can turn a loop into a longer chain or move the cycle to another URL. Fix the conflicting source rule and test the whole route.

For a permanent page move, Google recommends server-side permanent redirects such as `301` or `308` when possible. Choose the redirect type based on whether the move is permanent; see [301 redirects](/glossary/301-redirect). Do not use a redirect to disguise content that has been removed with no equivalent. Return a real [HTTP status](/glossary/http-status-codes) instead.

_03_Worth knowing

## A production-safe repair sequence

### Choose the final URL

decide the expected protocol, host, path, and locale before editing rules.

### Find both sides of the cycle

identify the redirect that sends URL A to B and the rule that sends B back to A. Change the rule that contradicts the chosen destination.

### Check proxy headers

if TLS ends at a load balancer, confirm the origin can correctly identify the original request scheme. Do not assume every request reaching the origin was HTTP.

### Review cache state

purge only the affected redirect cache after deploying the fix. A browser or [edge cache](/glossary/edge-caching) can keep serving an old redirect response after the origin rule changed.

### Update canonical and links

make [internal links](/glossary/internal-links), canonical tags, and sitemap URLs use the final URL so new sessions do not re-enter the bad path.

If a loop started after a platform or domain migration, compare the migration map with current host and protocol rules. Google recommends mapping old URLs to their new equivalents and testing redirects after activation. Keep the old [URL mapping](/glossary/url-mapping) where it still serves visitors, but point it to the stable final destination.

_04_How it works

## Verify the destination across clients

1. 1

### Retest the original address

Use a private browser and GET-based command-line trace. Confirm the sequence ends at the chosen URL, not merely that one browser session loads from cache.
2. 2

### Test protocol and host variants

Check HTTP/HTTPS and www/non-www versions, plus [trailing slash](/glossary/trailing-slash) and locale forms that your site supports.
3. 3

### Check mobile and crawler access

Test mobile user-agent behavior only when the site has rules that vary by request. Use [URL Inspection](/glossary/url-inspection-tool) for important pages after the route works publicly.
4. 4

### Monitor requests after release

Review CDN and origin logs for repeated redirects or continued requests to the loop URL. [Search Console](/glossary/google-search-console) may update only after Google retries and recrawls the URL.

A loop blocks the visitor from reaching the content and prevents the crawler from processing the final page. Once fixed, shorten any extra hops and review the [301 redirect rules](/glossary/301-redirect) that connect old and current URLs.

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ How do I know which redirect causes the loop?

Capture every response and `Location` header from the original URL until a URL repeats. Then compare the rules that send the repeated URLs in opposite directions across your proxy, server, app, and CMS.

_02_ Can HTTPS settings cause a redirect loop?

Yes. A proxy or load balancer can terminate HTTPS while the origin sees HTTP; if the origin then forces HTTPS without recognizing the original scheme, the request can repeat. Confirm your actual proxy and server configuration before changing rules.

_03_ Will Google Search Console fix a redirect loop?

No. Google says Search Console generates error messages for failed redirections (3xx), but the redirect rules must be corrected in the layer that serves them. Test the public URL before requesting a recrawl.

Sources · 5

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com
- rfc-editor.org
- curl.se

1. 01 [Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects) developers.google.com · checked 2026-10-24
2. 02 [Site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) developers.google.com · checked 2026-10-24
3. 03 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-24
4. 04 [RFC 9110: HTTP Semantics, Redirection 3xx](https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx) rfc-editor.org · checked 2026-10-24
5. 05 [curl man page: --max-redirs](https://curl.se/docs/manpage.html) curl.se · checked 2026-10-24

## Keep learning

[All seo issues](/seo-issues)

[Learn Redirect chains Redirects](/seo-issues/redirect-chains) [Related Canonical URL Crawling and indexing](/glossary/canonical-url) [Read next Underscores in URLs On-page](/seo-issues/underscores-in-urls) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in SEO issues
[Poor Largest Contentful Paint (LCP)](/seo-issues/poor-lcp) [Render-blocking JavaScript](/seo-issues/render-blocking-javascript)

More in Redirects
[Broken redirects after a migration](/seo-issues/broken-redirects-after-migration) [JavaScript redirects](/seo-issues/javascript-redirects) [Redirect chains](/seo-issues/redirect-chains) [Redirect loops](/seo-issues/redirect-loops) [Redirects to a 404](/seo-issues/redirect-to-404) [Temporary redirects that should be permanent](/seo-issues/temporary-redirects)

Terms on this page
[URL parameters](/glossary/url-parameters) [HTTPS](/glossary/https) [301 redirect](/glossary/301-redirect) [HTTP status codes](/glossary/http-status-codes) [Edge caching](/glossary/edge-caching) [Internal links](/glossary/internal-links) [URL mapping](/glossary/url-mapping) [Trailing slash in URLs](/glossary/trailing-slash)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
