On this page
What this issue is
Some multi-country sites look up the visitor's IP address and redirect them to a matching version, for example example.com/de/ for a German IP. This is called geo-redirecting. The problem starts when the guess is wrong, or when the redirect ignores what the visitor chose.
The result is a trap. A UK customer on a corporate network routed through the US lands on the US site. They click the UK link in the footer. The server sees the same IP and sends them back to the US site. They cannot reach the page they want.
Why it costs you leads or sales
Visitors who cannot reach the right site often leave. Those who stay may see the wrong currency, the wrong shipping rules or a product that is not sold in their country. Ad clicks are wasted too: someone clicks an ad for your UK offer and lands on a different country's page.
There is a tracking cost as well. If the redirect drops query strings such as gclid or UTM parameters, the visit loses its source. See the related redirect issues for that.
- Click ad or linkVisitor wants the UK page
- IP lookupVPN or office network shows US
- Forced redirect to US siteWrong store and currency
- Visitor picks UKRedirect fires again
- Lead or purchaseNever reached
The visitor picks the right site, but the IP rule overrides the choice.
Example: illustrative numbers for visitors whose IP points to the wrong country, with and without a forced redirect.
How to check if your site has it
- Open your site through a VPN set to another country. Are you moved without being asked?
- On the redirected site, use the country or language switcher to go back. Do you stay there?
- Open a deep link (a product or landing page) from a different country. Does it land on the page you asked for, or on the home page?
- Check that campaign URLs keep
gclidandutm_parameters after the redirect. - Open the site in a private window to confirm no saved choice is hiding the problem.
- In Chrome DevTools, open Network and tick Preserve log. Look for 301 or 302 responses on the first request.
curl -sI -H "Accept-Language: de-DE" https://example.com/ | grep -i -E "^(HTTP|location|set-cookie)"A Location: header in the response to a plain request means the server is redirecting before the page loads. Also test with a country-specific VPN, since curl from your own network shows only your own region.
How to fix it
Stop redirecting automatically
Remove the server, CDN or plugin rule that sends visitors by IP. Keep every country URL reachable by anyone.
Show a dismissible banner instead
Say something like 'It looks like you are in Germany. Go to our German site?' with two buttons: go, and stay here.
Save the choice
When the visitor picks a site or dismisses the banner, store it in a cookie and do not ask again.
Let the explicit choice win
If you must keep any automatic redirect, apply it only on the first visit to the home page, only when no choice cookie exists, and never on deep links.
Keep tracking parameters
If a redirect remains, pass the full query string through so
gclidand UTMs survive.Use hreflang
Tell search engines which URL serves which country or language, so they show the right version without redirects.
Check your multilingual or geo plugin
In plugins such as WPML or Polylang, look for browser-language or location redirect settings and switch them to off or to a banner. Also check any geo-targeting plugin and your CDN rules.
Use a suggestion, not a redirect
In Shopify Markets, use the Geolocation app (Shopify's own) which offers a country selector popup. If a third-party redirect app is installed, review its settings or remove it.
Check Localization and custom code
Webflow Localization has a setting for automatic routing by browser language in the Localization settings. Turn it off if it traps users, and look for redirect scripts in Site settings > Custom code.
Replace the redirect with a banner
Remove the redirect in your server, edge function or JavaScript. Use the snippet below to show a banner and remember the choice.
(function () {
var saved = document.cookie.match(/(?:^|; )country_choice=([^;]*)/);
if (saved) return; // visitor already chose
var suggested = window.SUGGESTED_SITE; // e.g. set by your server: {url: '/de/', label: 'Deutschland'}
if (!suggested || location.pathname.indexOf(suggested.url) === 0) return;
var bar = document.createElement('div');
bar.setAttribute('role', 'dialog');
bar.innerHTML = 'Visit our ' + suggested.label + ' site? ' +
'<a id="go" href="' + suggested.url + '">Go</a> ' +
'<button id="stay" type="button">Stay here</button>';
document.body.prepend(bar);
function remember(v) {
document.cookie = 'country_choice=' + v + '; path=/; max-age=31536000; SameSite=Lax';
}
document.getElementById('go').onclick = function () { remember(suggested.url); };
document.getElementById('stay').onclick = function () { remember('stay'); bar.remove(); };
})();Forced redirect
- Visitor moved without asking
- Switcher is overridden by the IP rule
- Deep links land on the home page
- Search engines may miss some versions
Suggestion banner
- Visitor stays on the page they asked for
- Choice is saved in a cookie
- Deep links and campaign URLs work
- Every version is crawlable
How to confirm it's fixed
- With a VPN set to another country, the page you requested loads without a redirect.
- The banner appears and offers the local site.
- Click 'Stay here', reload, and confirm the banner stays gone.
- Use the footer switcher to change country and confirm you are not sent back.
- A campaign URL with
?gclid=test&utm_source=testkeeps those parameters. - Repeat in a private window and on a phone using mobile data.
How to prevent it happening again
Redirect rules often come back through a plugin update, a new CDN rule or a new app. Keep a note of where location logic lives, and add a check to your release routine: open the site from at least two countries and use the switcher. Re-test after changing any multilingual plugin, CDN or store settings.
How FunnelGuard handles this
FunnelGuard does not check this yet. Detecting country-based redirect traps is a possible future check. Today it runs your real journeys, such as lead forms and checkouts, from the EU or the US and tells you when a step or a tracking hit fails, which can surface a broken journey that a redirect causes in those regions.
To watch for this yourself, test from several countries with a VPN after each release and run the checklist above. Browser tools such as Chrome DevTools and curl show redirects clearly. A free read-only audit is also available from FunnelGuard, and the Free plan covers 1 site and 2 journeys with daily checks, no card needed.
Questions people ask
Why am I stuck on the wrong country site?
The site probably redirects by IP address and ignores your choice. A VPN, company network, mobile carrier or travel can make your IP look like another country. Try a private window, clear the site's cookies, or look for a country selector in the footer.
Is it bad to redirect visitors by IP address?
A forced redirect is risky because IP location is often wrong and users cannot override it. A dismissible banner that suggests the local site is safer. It also avoids blocking search engines from seeing your other versions.
How do I stop my site redirecting by country?
Disable the redirect rule in your multilingual plugin, store settings, CDN or custom code. Replace it with a banner offering the local site, and save the visitor's choice in a cookie. Keep every country URL accessible to everyone.
Does IP-based redirecting hurt SEO?
It can. Googlebot mostly crawls from US IP addresses, so a forced redirect may hide your other country pages from it. Use separate URLs and hreflang tags so search engines can find each version.
Why does the language switcher send me back to the same site?
The switcher links to the right URL, but a server rule redirects by IP again before the page loads. The fix is to let an explicit choice, saved in a cookie, override any location rule, or to remove the rule.
How do I test a geo-redirect from another country?
Use a VPN set to the target country and open your site in a private window. Check whether you are moved, whether the switcher works and whether campaign parameters survive. Chrome DevTools with Preserve log on shows the redirect steps.
Can FunnelGuard detect a country redirect trap?
Not yet. It is a possible future check. FunnelGuard does run your real journeys from the EU or the US on a schedule and reports failing steps, but you need to test country redirects manually for now.
Related issues
- PRF-348Visitor sees wrong language version (geo/browser redirect wrong)Fix guide
- PRF-350Language switcher links to 404 or homepageFix guide
- PRF-351hreflang points to wrong/missing pagesFix guide
- PRF-355Currency not matching visitor's countryFix guide
- PRF-368Shipping not available to visitor's country discovered at checkoutFix guide
- PRF-369Cookie banner in wrong languageFix guide