When a page refuses to load after a language switch, the browser shows a "too many redirects" warning, or a visitor simply cannot move to the language they picked, two separate rules on your site are sending the same request back and forth. The problem rarely comes from one mistake. It usually comes from layers that were set up without knowing about each other: server-side language detection, the language switcher cookie, the CDN cache and URL normalisation rules. Because the loop happens at the very start of crawling, indexing and rendering on multilingual sites, before the page loads at all, it leaves both the buyer and the search engine crawler standing at the door.
This article first looks at how a loop shows up from the outside, then at the five most common causes, and finally at how to read the chain step by step and close it for good. The goal is to pin down which rule fires under which condition, rather than reaching for a blunt fix such as "let's just remove the redirect".
Symptoms: How to Spot a Loop
A redirect loop does not always announce itself with a browser error page. Some loops only occur for a particular group of visitors, a particular cookie state or a particular copy in the cache. That is why the complaints tend to arrive scattered and hard to reproduce.
Visible signs in the browser
- ERR_TOO_MANY_REDIRECTS in Chrome, or "The page isn't redirecting properly" in Firefox.
- Clicking English in the switcher, seeing a brief flicker, and landing on the Turkish page again.
- The URL in the address bar changing several times and ending up back where it started.
- The issue disappearing after clearing cookies or in a private window, then returning in a normal session.
Signs in Search Console
A typical clue is "Redirect error" or "Page with redirect" statuses clustering in one language folder in the page indexing report. The live test in the URL Inspection tool shows the response Googlebot receives; if a page that opens fine in your browser returns a redirect error in the live test, the loop probably only occurs with certain request headers. Report names and layouts can change over time, so check the official source for the current state.
Silent symptoms
A loop is not always infinite. Even if the browser gets there after five or six hops, an unnecessary chain on every language switch is felt as waiting time by a buyer on a slow connection. Unusually low movement between language versions in analytics, high bounce from certain countries, or consecutive 301 and 302 entries from the same IP within seconds in server logs are the traces of such a silent chain.

Five Common Causes of the Loop
Each of the causes below can produce a loop on its own, but in practice two or three usually appear together. The safest way to diagnose is to disable them one at a time and find out which one starts the chain.
Accept-Language versus the cookie
The most common scenario goes like this: the server looks at the browser's Accept-Language header or the IP location and automatically sends the visitor to a language folder. When the visitor picks another language in the switcher, the application writes a cookie. The problem is that no one has defined which of the two mechanisms wins. A German distributor using a Turkish-language browser wants to move to /de/; the application writes the cookie, but the server rule reads Accept-Language without checking the cookie and sends them back to /tr/. The application reads the cookie and pushes to /de/, the server says /tr/ again. That is how the loop starts.
We covered the separate risk that location-based automatic redirects pose for Googlebot in Googlebot crawling from the US and the risks of location-based content. A loop is the harshest form of that risk: the crawler never reaches some pages at all.
Cookie and URL mismatch
The second cause is storing the language both in the URL and in a cookie, with the two saying different things. A visitor with an /en/ cookie clicks a link starting with /tr/. The application decides "the cookie says English" and sends them to /en/; but if that content has no English counterpart, the /en/ rule sends them back to the default language, which is /tr/. Here no single source of truth has been defined. In a URL-based multilingual structure, the URL should be the source of the language; the cookie should only be read as a preference hint at the root address, where no language is specified.
Redirects cached without Vary
The third cause sits in the CDN or reverse proxy layer. If the root address (/) redirects to /tr/ or /en/ based on Accept-Language and that 302 response is cached without Vary: Accept-Language or a cookie-aware cache key, the language of the first visitor is served to everyone. Worse, if the redirect is marked permanent (301), the browser stores it in its own cache too, and a fix on the server does not reach that user straight away. When the cache does not carry the information needed to make the redirect decision, a wrong copy and the application rule end up working against each other. You will find the details of this layer in Vary header issues with CDNs and caching.
Trailing slash and language prefix rules
The fourth cause is URL normalisation rules chaining with the language prefix. The server says "add a trailing slash" while the application router says "remove the trailing slash"; or the server lowercases /EN/ while the application expects an uppercase language code. Two rules that look harmless on their own trigger each other once a language prefix is involved: /en → /en/ → /en → /en/. All of these consistency issues are the subject of today's article on trailing slash, letter case and language folder consistency.
An undefined root and x-default
The fifth cause is leaving the role of the root address undefined. If the root tries to act as a language selection page, the default language page and an automatic redirector all at once, the x-default annotation in the hreflang cluster becomes ambiguous as well. For instance, x-default points to the root, the root sends requests without Accept-Language to /tr/, and the "choose language" link on /tr/ returns to the root. Even if this is not a loop, it creates an unnecessary round trip. As our hreflang glossary explains briefly, x-default is a fallback address for visitors without a language match, not a redirect mechanism.
Diagnosis: Reading the Chain Step by Step
Before fixing the loop, you need to see exactly which steps the chain goes through. Deleting rules on a hunch usually moves the loop to another language folder. You can run the diagnostic list below both on the command line and in the browser.
- Request the headers one at a time. On the command line,
curl -I https://yourdomain.com/enshows only the first response and its Location header. Walk the chain yourself by using each Location value in the next request; this shows you at which step a rule reverses. - Follow the chain automatically.
curl -sIL --max-redirs 10 URLfollows the redirects and lists the status code of every hop. The same two addresses repeating in turn is proof of a loop. - Change the language header. Send the same request with
-H "Accept-Language: de-DE"and with-H "Accept-Language: tr-TR"separately. If the loop only occurs with one header value, the cause is server-side language detection. - Add and remove the cookie. Send your application's language cookie with
-H "Cookie: lang=en"and compare the result with a cookieless request. If the cookie request loops, focus on the cookie and URL mismatch. - Check the cache headers. Look at CF-Cache-Status, X-Cache, Age and Vary in the response. A redirect response arriving as a HIT without a Vary header shows that the cache is making the decision.
- Open the browser developer tools. Tick "Preserve log" in the Network tab and click the language switcher. On every 301, 302, 307 or 308 row, read the Location header and the Cookie header the request sent; a "from disk cache" note means the browser is reusing an old permanent redirect.
- Test through Googlebot's eyes. Use the live test in Search Console's URL Inspection; the headers your browser sends are not the same as Googlebot's requests. What the tool shows can change, so check the official source for the current state.

Matching Symptoms to Causes
Match the observations from the diagnostic list against the table below to choose quickly which layer to focus on.
| Observation | Likely cause | Where to look first |
|---|---|---|
| Loop only with a specific Accept-Language value | Server language detection ignores the cookie | Server or middleware redirect rule |
| Fine in a private window, broken in a normal session | Cookie and URL mismatch, or a 301 stuck in the browser | Language cookie logic, browser cache |
| Redirect response comes from cache as a HIT | Missing Vary or cache key | CDN cache rules |
| Bouncing between /en and /en/ | Conflicting trailing slash rules | Server and application router settings |
| Round trip between the root and a language folder | Undefined root role and x-default | Root behaviour, hreflang cluster |
Steps to a Permanent Fix
Once the diagnosis is done, think of the fix not as deleting one rule but as redefining where, and in what order, the language decision is made. The sequence below is the approach that leaves the fewest side effects in practice.
- Make the URL the single source of truth. If a request carries a language prefix (/en/, /de/), that page is served in that language; neither the cookie, nor Accept-Language, nor the IP overrides this decision.
- Limit automatic language detection to the root. For an entry without a language prefix, the order of preference can be: first the user's saved preference cookie, then Accept-Language, and finally the default language. Do not auto-redirect inside language folders.
- Link the switcher directly to the target URL. Instead of writing a cookie and reloading the page, the switcher should link to the address of the matching language version. The cookie is updated with that click only as a record of preference.
- Decide what happens when there is no counterpart. If a piece of content has no English version, the switcher should either go to that language's home page or show the option as inactive; it must never fall into a rule that pushes back to the default language.
- Keep the root redirect temporary and split the cache. Using 302 or 307 instead of a permanent 301 for a root redirect based on language detection prevents the browser from storing a wrong decision permanently. On the CDN, either do not cache that response or add the language signal to the cache key.
- Keep URL normalisation in one layer. Define trailing slash and lowercase rules either on the server or in the application, not in both. Normalisation should finish before the language decision, in a single hop.
- Clean up old permanent redirects. If a wrong 301 was published earlier, it may still appear in some browsers for a while after the fix. Give your support team an instruction to ask affected users to clear their browser cache.
After these steps, run the commands from the diagnostic list again. For every language URL the expected result is at most one redirect followed by a 200 response; the correct address with a language prefix should return 200 directly.
Google's View on Automatic Redirects
As far as we know, Google Search Central's guidance for multilingual and multi-regional sites takes a cautious view of redirecting users automatically based on language or location. The recommended route is to serve each language version on its own URL, connect the versions with hreflang and give visitors a choice through a suggestion banner such as "This page is also available in English". The guidance notes that automatic redirects can lock users into a version they did not want and can stop the crawler from seeing some versions.
If automatic redirection is used on an entry without a language, such as the root, pointing x-default at that address is a common practice. The details of the guidance and its examples may be updated over time, however, so check the official source for the current state before implementing. The practical principle stays the same: whatever headers it arrives with, the crawler must be able to reach every language URL directly.
Pre-Release Test Matrix
Loops usually come back when a new language is added, a CDN setting is changed or the application router is updated. Running a small test matrix before every change catches the problem before it goes live. The matrix crosses four variables:
- Entry address: the root, a page with a language prefix, a language prefix without a trailing slash, an uppercase language prefix.
- Language header: Turkish, English, a language the site does not offer, and a request with no header.
- Cookie state: no cookie, a cookie matching the URL language, a cookie in a different language from the URL.
- Cache state: a cold cache and a cache warmed by at least one request.
Record the number of redirects and the final status code for every combination. Automating this matrix with a small script is not hard, and the same script can run as part of a post-deploy smoke test. If even one combination produces more than two hops or a repeated address, stop the release.
Redirect rules are the least visible layer of a site, and that is exactly why they are the easiest to break. As a final check, ask yourself: does every language URL on your site open in its own language, in a single step, for a request that arrives with no cookie and no language header?




No comments yet
Leave a Comment