WordPress Geo Redirect Plugin – Redirect Visitors by Location
A geo redirect sends a visitor to a different page or site based on where they are — detected from their IP address, or from their device with HTML5 geolocation.
You can redirect visitors to location-specific pages or websites based on their country, state, city, continent, or timezone.
How It Works
If-So detects each visitor’s location and redirects them when your rules match.
You pick the locations, generate a redirect shortcode, and paste it on the page you want to redirect from — or set one rule that covers every page on your site at once.
Setup takes about a minute, and it works the same whether you build with Gutenberg, Elementor, or any other builder.
Geo redirects are included in the free version, so you can have one running before you decide on a plan.
See the geo redirect step-by-step setup guide →
Geo Redirects That Run on Cached Sites
Cached pages are the normal case, not the exception, so If-So includes a redirect type built for them. It runs in the browser once the cached page has been served, which means the pages you redirect from stay in your cache and stay fast.
Your caching setup keeps working as your host or performance consultant configured it.
There are no URLs to exclude, no rules to write inside your caching plugin, and no CDN configuration to maintain — the same option applies whether you run a caching plugin, a CDN, or caching at the hosting level.
Use Cases – Redirect Visitors by Country, Region, or City
Set each redirect at the level of precision the case calls for — continent, country, region, state, or city.
• Send UK visitors to a correspondant page on your .co.uk domain automatically
• Route US visitors to a USD pricing page and EU visitors to a EUR page
• Point visitors in one city to that branch’s landing page
• Open a language-matched homepage based on the visitor’s country
• Move visitors outside your service area to a partner page or a waitlist
Each redirect is a rule you set once and leave running. Visitors from the locations you named go where you send them, and everyone else continues to your default page.
How If-So Knows Where Visitors Are
Every visitor’s location comes from their IP address by default. It resolves instantly, needs nothing from the visitor, and is accurate enough for country and region targeting.
For city-level precision, you can switch to HTML5 geolocation, which reads the location from the visitor’s own device. It’s the more accurate of the two, and it asks the visitor for permission before it runs.
Advanced Geo Redirect Settings and Alternatives
An automatic redirect isn’t always the right answer. If-So gives you softer options for the same problem.
- Ask before redirecting. Show a location-based pop-up offering the local version — “Looks like you’re in Germany. See this page in German?” — and let the visitor decide.
- Geo-based button links. Point a single button or menu item at a different destination per location with location-based content, leaving the rest of the page untouched.
- Let visitors choose their own region. Add a self-selection form and route each visitor by what they pick rather than by where they are.
- Give visitors a way out. Add a manual location selection so anyone who doesn’t want the automatic redirect can stay put.
- Redirect once, not every time. Limit a redirect to one per session, or one per a time window you set, so returning visitors reach the page normally after the first time.
Why Use If-So for Geo Redirects?
Most geo redirect problems don’t come from the redirect itself. They come from the database behind it, the cache in front of it, or a visitor who ended up somewhere they didn’t want to be. If-So is built around those three.
1. No database to download or maintain
Location comes from IPinfo’s premium IP-to-location database, included on every plan — including the free one. Nothing to install, no monthly file updates, no attribution notice.
2. Works on cached pages
Add ajax="yes" to the trigger shortcode and the redirect runs after the cached page is served. Same setting for WP Rocket, LiteSpeed, Cloudflare, or host-level caching — no pages to exclude, no cache rules to write.
3. Five redirect types
301, 302, 307, 308, or JavaScript, so you can match the redirect to the SEO outcome you want. 302 is the safe default for location-based routing.
4. City-level precision when you need it
IP detection is accurate for country and region. For cities, switch to HTML5 geolocation and read the location from the visitor’s device, with their permission.
5. Redirect once, not every time
Limit a redirect to one per session, or to any time window you set, so returning visitors reach the page normally.
6. Ask instead of forcing
Show a location-based pop-up that offers the local version and lets the visitor decide, or add a manual location selector so anyone can opt out. Both come with the same plugin.
Screenshots


