On this page
What this issue is
Many multilingual sites redirect visitors automatically. The decision usually rests on one of two signals. The first is geolocation: the country your visitor's IP address appears to come from. The second is the Accept-Language header: a list of preferred languages that the browser sends with every request.
Both signals are weak. A Spanish speaker on holiday in Germany looks German by IP. A Swiss visitor may need German, French or Italian. A browser set to English may belong to someone who reads Portuguese. A VPN, a company network or a mobile carrier can place someone in the wrong country entirely. When the redirect trusts the signal too much, the visitor lands on a page they cannot read.
Why it costs you leads or sales
A visitor who cannot read the page leaves. If they clicked an ad written in French and land on an English page, the message they were promised is gone. Your ad spend is paid, the click is counted, and no lead follows.
It can also break tracking and attribution. Redirects that add or rewrite URLs may drop parameters such as gclid and UTM tags, so the sale is credited to the wrong source or to none. Search engines may also struggle to index language versions that visitors and crawlers cannot reach without being redirected.
- Ad clickLink points to the French page
- RedirectSite reads IP or browser and sends them to the wrong language
- Landing pageVisitor cannot read the offer
- Form or checkoutNever reached
The visitor clicks a French ad but is redirected by IP to another language version.
Example: illustrative numbers showing how landing on the wrong language can cut conversions.
How to check if your site has it
Test the redirect with different signals, one at a time. Do each test in a private window so saved cookies do not interfere.
Change the browser language
In Chrome, open Settings, then Languages, and move a different language to the top. Open your homepage in a private window and note where you land.
Test from another country
Use a VPN or a trusted geo-testing tool to browse from a different country. Check you are not sent somewhere unexpected.
Open a language-specific URL directly
Paste the URL of each language version, such as /fr/ or /de/, into a fresh window. You should stay on that page and not be redirected.
Click your real ad and email links
Follow each live campaign link. Confirm the language matches the ad and that gclid and UTM parameters survive in the address bar.
Use the language switcher, then reload
Pick a language manually, then reload and revisit the homepage. The site should remember your choice.
Inspect the redirect
Run the command below to see the status code and the Location header.
curl -sI -H "Accept-Language: fr-FR,fr;q=0.9" https://example.com/ | grep -iE "^(HTTP|location|vary|set-cookie)"How to fix it
The safest approach is to stop forcing visitors. Show the page they asked for and offer a banner such as "This page is also available in French". If you must redirect, do it only on the first visit to the bare homepage.
Never redirect direct language URLs
If someone requests /fr/ or /de/, serve it. Only consider redirecting the root URL.
Prefer the browser language over IP
Accept-Language reflects what a person reads. IP reflects where they are. Use IP only for things like currency or shipping.
Remember the visitor's choice
When someone uses the language switcher, store it in a cookie and skip all automatic redirects afterwards.
Match on the base language
Treat en-GB, en-US and en as English. Match the first part of the code, and fall back to your default language when nothing matches.
Use a temporary redirect or a banner
Use 302, not 301, and add a Vary: Accept-Language header so caches do not serve one visitor's redirect to another.
Keep tracking parameters
Make sure the redirect copies the full query string, including gclid and UTM tags.
Check your multilingual plugin
In WPML, open WPML, then Languages, and review the browser language redirect option. In Polylang, open Languages, then Settings, and review 'Detect browser language'. Turn it off or limit it to the homepage.
Check for second redirect sources
Look at any redirect or geo plugin and your caching plugin, as they may add their own rules.
Review Markets and language settings
In Settings, then Markets, check which languages each market uses and the default. Shopify's Geolocation app can suggest a country or language to visitors; review its settings under Online Store, then Themes, then Customize, and prefer the suggestion over an automatic redirect.
Check for extra apps
If a third-party translation or geo-redirect app is installed, review its redirect rules or disable the auto redirect.
Review Localization settings
Open Site settings, then Localization. Check the locale subdirectories and the automatic locale routing options, and disable automatic routing if it sends people to the wrong locale.
Check custom code
Search Site settings, then Custom code, for scripts that read navigator.language and call location.replace.
Open Wix Multilingual
Go to Multilingual in your dashboard and check the settings for the language shown first to visitors. Choose the option that uses the browser language only if you are happy with it, or keep your default language.
Check for custom redirects
Squarespace has no built-in language redirect, so look in Settings, then Developer Tools, then URL Mappings, and in Code Injection for scripts that redirect by language.
Make the redirect conditional
Redirect only the root path, only when no language cookie exists, and use a 302. See the snippet below.
(function () {
var supported = ['en', 'fr', 'de'];
var saved = document.cookie.match(/(?:^|; )lang=([^;]+)/);
// Only act on the bare homepage, and never override a saved choice
if (saved || location.pathname !== '/') return;
var pref = (navigator.language || 'en').slice(0, 2).toLowerCase();
if (supported.indexOf(pref) > -1 && pref !== 'en') {
// Keep the query string so gclid and UTMs survive
location.replace('/' + pref + '/' + location.search + location.hash);
}
})();Forced redirect
- Every visit is redirected by IP
- Direct /fr/ links get overridden
- Language switcher choice is forgotten
- 301 redirects are cached
- UTM tags are dropped
Respectful redirect
- Only the bare homepage can redirect
- Direct language URLs are always served
- A cookie remembers the visitor's choice
- 302 plus Vary: Accept-Language
- Query string is preserved
How to confirm it's fixed
- Each language URL opens without being redirected
- A browser set to French lands on the French homepage on a first visit only
- Choosing a language in the switcher sticks after a reload
- A visitor from another country with a matching browser language is not moved
- Ad and email links keep gclid and UTM parameters
- The curl check shows a 302 and no redirect loop
How to prevent it happening again
Language rules tend to break when someone updates a plugin, adds a market, changes a CDN rule or installs a new app. Keep a short written list of every place a redirect can happen: the CMS plugin, the server, the CDN and any scripts. Re-run the tests above after each change and before launching a campaign in a new language.
- Run the browser-language and VPN tests after every plugin, theme or CDN change
- Test each live ad link before a campaign goes out
- Document which layer owns language redirects so two layers do not fight
- Review the list of supported languages when you add a market
How FunnelGuard handles this
FunnelGuard does not check for wrong language or geo redirects yet. A language and region variant check is a possible future addition, but today it is not part of the product.
What FunnelGuard does do is run your real customer journeys on a schedule from the EU or the US, such as lead forms, checkouts and booking buttons, and check each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a redirect broke one of those journeys, for example by sending the robot to a page without the form, the failed step would show up. It would not tell you that the language was wrong.
Frequently asked questions
Questions people ask
Why does my website show the wrong language to visitors?
The site is probably guessing from the visitor's IP address or browser language and guessing wrong. Travellers, VPN users and people whose browser language differs from the language they read are common cases. Another cause is a rule that ignores the language the visitor already chose.
Should I redirect visitors by IP address or by browser language?
Browser language is the better signal for choosing a language, because it reflects what the person reads. IP address suits country-based things such as currency or shipping. Even then, suggest the change with a banner and let the visitor decide.
How do I stop my site automatically redirecting to another language?
Turn off the browser or geo redirect option in your multilingual plugin or app, then check for custom scripts and server or CDN rules. In WPML or Polylang, look for the browser language detection setting. Afterwards, retest in a private window with a different browser language.
Do automatic language redirects hurt SEO?
They can. Search engine crawlers often request pages without a language preference, so forced redirects may stop them reaching some versions. Serve each language at its own URL, link them with hreflang and avoid forced redirects on those URLs.
Why does my language redirect drop my UTM parameters or gclid?
The redirect rule probably sends visitors to a clean URL and discards the query string. Change the rule so it appends the original query string to the new address, then click a real campaign link to confirm the parameters remain.
How do I test my website's language redirect from another country?
Use a VPN or a geo-testing tool and open the site in a private window. Also change your browser's preferred language and use curl with an Accept-Language header to see the redirect response. Test each signal separately.
Does FunnelGuard detect wrong language redirects?
No. FunnelGuard does not check language or geo variants yet; this is a possible future check. It does run your real journeys such as forms and checkouts on a schedule, so a redirect that breaks one of those journeys would show as a failed step.
Related issues
- PRF-349Auto-redirect by IP traps users in wrong country siteFix guide
- PRF-350Language switcher links to 404 or homepageFix guide
- PRF-351hreflang points to wrong/missing pagesFix guide
- PRF-369Cookie banner in wrong languageFix guide
- PRF-355Currency not matching visitor's countryFix guide
- PRF-352Mixed languages on one page (untranslated strings)Fix guide