Free auditStart free
GuideSEO issue · Redirects

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.

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 withChatGPTClaudePerplexityGoogleAI Mode
01How 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. 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 settings. One layer may enforce HTTPS while another sends the request back to HTTP.

02Typical 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.

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. Do not use a redirect to disguise content that has been removed with no equivalent. Return a real HTTP status instead.

03Worth 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 can keep serving an old redirect response after the origin rule changed.

Update canonical and links

make 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 where it still serves visitors, but point it to the stable final destination.

04How 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 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 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 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 that connect old and current URLs.

Questions

Asked a lot.

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

01How 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.

02Can 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.

03Will 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. 01Redirects and Google Searchdevelopers.google.com · checked 2026-10-24
  2. 02Site moves with URL changesdevelopers.google.com · checked 2026-10-24
  3. 03How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-24
  4. 04RFC 9110: HTTP Semantics, Redirection 3xxrfc-editor.org · checked 2026-10-24
  5. 05curl man page: --max-redirscurl.se · checked 2026-10-24
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane