A fictional valve exporter (hypothetical example) launched its English pages two months ago. The team opens the site, clicks the language switcher, and the text changes, so everything looks fine. Yet when a buyer in Germany searches in English, the only result is the Turkish address. The cause often hides in one line of the address bar: ?lang=en. For a browser, the page works. For a search engine, the same address is serving two languages, and it cannot tell which one deserves a place in the results.
This article explains why language parameters create risk for international SEO, which error shows up with which symptom, and how a separate URL structure fixes the problem. For the broader picture, read our international site architecture pillar on domain, URL and language decisions. Here we focus on one question: the language parameter itself.
Key Takeaways
- A language parameter such as ?lang=en serves several languages from one address, so search engines cannot treat each version as a stable page.
- If the language depends on a cookie or a browser setting, Googlebot often sees only the default version.
- Canonical and hreflang tags conflict easily on parameterised URLs, which leaves language versions unindexed.
- Each error has a clear symptom, cause and fix, and most can be found in Search Console reports and server logs.
- The reliable alternative is a separate, permanent URL per language, such as /en/, paired with a reciprocal hreflang set.
What a language parameter is and why it looks attractive
A language parameter is a query string added to an existing address: ?lang=en, ?lang=de or ?lang=tr. The server reads that value and generates the page text in the chosen language. For developers it is an appealing shortcut, because there is no need to create separate folders, templates or page files for each language. One template, one publishing flow and one content model are enough.
In the short term the speed is real. Search engines, however, identify and rank pages by their address. When one address represents one language, everything works. When the same address produces different content depending on a parameter, the engine has to decide which version to index, which to show in which country, and which one is merely a copy of another. Google's documentation on multilingual and multi-regional sites recommends a separate, stable URL for each language version.
The core problem is that a parameter does not give search engines independent pages. The six errors below follow from that gap. For each one we describe the symptom, the cause and the fix, so you can check your own site without guessing.
How search engines tell language versions apart
Google works out the language of a page from its content, the lang attribute and other site signals. To keep versions apart reliably, three signals need to agree:
- A stable address: each language version has its own URL that does not change.
- A correct canonical: each version points to itself, never to a different language.
- A reciprocal hreflang set: versions list each other, and each one lists itself too.
A parameter weakens all three. The address looks stable, yet the content depends on a cookie, the browser language or the current session, so the engine cannot be sure which version it saw during a crawl.
Cookies matter as well. Googlebot generally does not keep cookies between requests. If the language preference is stored in a cookie, the crawler always receives the default language and never sees the others. The page appears to work for real visitors while the search engine sees only one language.
Error 1: One URL, several languages, one version indexed
Symptom
In Search Console the Turkish pages are indexed, while the English or German variants sit in statuses such as "Alternate page with proper canonical tag" or "Crawled, currently not indexed". A buyer in another country sees only the default version in results, and clicking through lands on that version too.
Cause
When the parameter-free address and the ?lang= address render almost identical content from the same template, the engine groups them as variations of one page. If it cannot confirm that the parameter version is truly different, it keeps the version it trusts most. The default language usually lives at the parameter-free address, so that version tends to win.
Fix
Give each language its own path, such as /en/ and /de/. Define a clear default language for the parameter-free address, and make sure that language also lives on its own path. Stop trying to solve the problem inside the parameter. Google removed the old URL Parameters tool from Search Console in 2022, so telling the engine to ignore a parameter is no longer a supported route.
Error 2: Language versions are never crawled or indexed
Symptom
Language versions are missing from the sitemap, or the listed ones stay in "Discovered, currently not crawled". Server logs show Googlebot requesting only the parameter-free address, and the English version never appears in search.
Cause
Language switchers are often built with JavaScript and do not expose a normal link until clicked. Crawlers that do not run that script cannot discover the other versions. Internal links also tend to stay inside the current language, so no path connects one language to another. Each language stands alone, with nothing pointing to the others.
Fix
Render language switcher links as plain HTML anchor elements, each pointing directly to a real URL. Add every language version to the sitemap as its own clean address. Read the language from the path rather than from a cookie, so that users and Googlebot receive the same version for the same URL.
Error 3: Canonical conflicts
Symptom
Search Console reports "Duplicate, Google chose different canonical than user" or the alternate-page status. The English page is treated as a copy of the Turkish page, is not indexed on its own, and in some results the wrong language's address appears.
Cause
On parameterised pages the canonical tag often points to a fixed address, such as the Turkish homepage. A small template error produces the same result: the canonical on ?lang=en is generated as ?lang=tr. The engine reads the canonical as an instruction and treats the English version as a duplicate of the main one.
Fix
Each language version should canonicalise to its own full address. Test the template by comparing canonical values across language pages; none should point to a different language. Small differences such as parameter order, tracking tags or a trailing slash can also create separate canonical targets, so normalise them to one standard format.
Error 4: hreflang mismatch
Symptom
Pages appear to include hreflang tags, yet the international reports in Search Console or third-party audit tools show pairing errors. The wrong language version appears in a target market, or none appears at all.
Cause
hreflang annotations are reciprocal: if page A points to B, page B must point back to A. Parameterised setups break this often, because one page uses ?lang=en while another uses a different parameter name or a trailing slash. Every unmatched link can lead the engine to ignore the whole annotation set. For a step-by-step check, see our guide to detecting and fixing hreflang return tag errors.
Fix
Build one hreflang set per page group, listing every other language version and the page itself, and generate that set from a single source such as the template or the sitemap. Add an x-default value so that unmatched visitors have a sensible destination. For the underlying setup logic, our international SEO guide on hreflang errors covers the common patterns.
Error 5: Parameter sprawl and wasted crawl budget
Symptom
The crawl report lists dozens of addresses that serve the same content: ?lang=en, ?lang=EN, a version carrying a menu tracking tag, and variants where the parameters appear in a different order. Each new product multiplies the count, and important pages are crawled later than they should be.
Cause
Search engines treat every distinct address as a separate URL. When parameter order, letter case or tracking tags change, the server returns the same content under different addresses. That spends limited crawl resources, creates duplicate content and delays the discovery of new or valuable pages.
Fix
Pin the language code to the path and consolidate parameter combinations into one clean address with a canonical tag. For tracking parameters, use a server-side redirect or a canonical rule. In your own sitemap, list only clean, parameter-free addresses that use the language path.
Error 6: Cache mix-ups and the wrong language served
Symptom
A visitor opens the English page and sees Turkish text, or the reverse. The problem appears intermittently and disappears after the browser cache is cleared. Support tickets that say "the page language keeps switching" usually trace back to this.
Cause
A CDN or intermediate cache stores HTML responses by address. If language selection depends on a cookie or request header, and the cache key does not include that difference, the first language served is delivered to everyone who requests that address. This damages the experience for users and makes what the search engine sees inconsistent.
Fix
Move the language decision into the address itself. Every page with a language path is cached per language, and the cache key separates the paths naturally. Before going live, request two language paths back to back and confirm that the responses differ and that each one matches its language.
The correct alternative: a separate URL structure per language
The fix is to make the language a permanent part of the address. The most common pattern is subdirectory based: the Turkish version sits at the root or under /tr/, English under /en/, German under /de/. Each language version has its own address, its own canonical tag and a reciprocal hreflang set. That architecture gives search engines a clear signal and removes most of the caching and crawling problems described above.
Our own blog works this way: Turkish articles are published under /blog/ and English articles under /en/blog/. If you are deciding between a subdirectory and a country-code domain, the URL structure guide on subdirectories and ccTLDs compares the trade-offs. Splitting languages with a separate subdomain follows its own logic, which we cover in our article on subdomains for international SEO.
When you move to the new structure, apply five principles:
- Choose a permanent path for each language and do not change it later.
- Make each page's canonical tag point to the full address in its own language.
- Keep the hreflang set complete and reciprocal across all page pairs.
- Serve language switcher links as plain HTML that leads directly to real addresses.
- Include only clean, language-path addresses in the sitemap.
Moving safely away from an existing ?lang= setup
If your parameterised addresses already receive traffic, switching them all in one go can unsettle rankings. Start by exporting from Search Console the addresses that earn clicks and impressions. Decide on the new language-path equivalent of each address that receives traffic, then plan the switch in stages.
- List every parameterised address and its traffic over the last three months.
- Prepare a table that maps each address to its new language path.
- Set up permanent 301 redirects according to that map, and avoid redirect chains.
- Add the new addresses to the sitemap and remove the old parameterised ones.
- Watch the indexing, hreflang and canonical reports for two weeks after the switch.
Permanent redirects matter here. A temporary redirect tells the engine that the old address is still the real one, which delays the new structure from gaining strength. Point each redirect straight at its final target, because chains waste crawl budget and make the setup fragile.
All six errors at a glance
The table below collects the symptom and the short fix for each error in one place. When you audit a site, start with the table and then go to the matching section.
| Error | Typical symptom | Short fix |
|---|---|---|
| One URL, several languages | Only one language gets indexed | Language paths such as /en/, /de/ |
| Language versions not crawled | Missing from sitemap, links built with JavaScript | Plain HTML links and a clean sitemap |
| Canonical conflicts | "Alternate page" or "different canonical" warnings | Each language canonicalises to its own full address |
| hreflang mismatch | Pairing errors in international reports | Reciprocal set and x-default |
| Parameter sprawl | Dozens of variants, slow crawling | Fixed path, canonical and a clean sitemap |
| Cache mix-ups | Wrong language appearing now and then | Language in the path and a cache test |
Conclusion and next step
A language parameter looks efficient from the development side, yet for international search it creates a lasting risk. For a search engine to treat each language as an independent page, every language needs its own address, its own canonical tag and a reciprocal hreflang set. A parameter makes all three harder to achieve at the same time.
The one task you can finish this week is this: in Search Console, filter the URLs that contain lang=, then count how many are indexed and how many have canonical problems. That number shows how urgent the switch is. If you want to design the language structure from the start, or move an existing site onto this logic, we are happy to review the decision with you.




No comments yet
Leave a Comment