You could try using:
http://ipinfodb.com/ip_location_api.php
Send a get with the incoming ip adress and based on the response redirect it to a different part of your website.
$request = new WP_Http;
$result = $request->request( 'http://api.ipinfodb.com/v3/ip-country/?key=<your_api_key>&ip=74.125.45.100' );
I hope this helps.
Related Posts:
- How to redirect non-logged in users to a specific page?
- When I change slug, will WordPress create redirect from the old URL?
- Why is WordPress redirecting from http to https on a local environment?
- Why am I getting a 301 on a existing post?
- Non-WordPress page in subdirectory under WordPress page
- Keeps on redirecting on my development copy
- Password change when the user login first time
- Custom login form redirect to external site
- Implementing global redirection (automatic redirect for all pages who had their slug changed)
- Redirect to custom url when registration fails?
- Exclude a path from WordPress using .htaccess redirects (Apache)
- Restrict Access to wp-login.php
- How to redirect url requests to https? [closed]
- Best way to handle redirects
- Redirect to custom URL after registering from a page with registration form
- Stop unwanted WP redirection to new url
- WordPress within a subdirectory of another WordPress environment doesn’t work
- wp-login.php — redirect logged in users to custom URL
- WordPress Customizer: custom redirection after closing
- Redirect feed to 404 page
- Does WordPress automatically redirect url without parent slug?
- Hiding WordPress behind IIS redirects
- htaccess 301 redirect http to https doesn’t work
- Site redirecting from http to https [closed]
- Use htaccess to redirect WordPress to static website in a subfolder
- Defining a custom 404 for non-WordPress parts of site
- Redirect all post into some category to url without category
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- How to redirect URL with subfolder to the same URL but without subfolder?
- What is the right way to redirect all traffic to HTTPS?
- Site loads very slowly (4-5 minute load time)
- Where’s the redirect happening? [closed]
- Snippet for own (gr)avatars
- URL redirect problem
- 503 Service Unavailable error was encountered
- SSL and www to non-www redirection works only on homepage – WordPress
- Regex with HttAccess
- Regex redirect rule for missing part of the path
- Page template that redirects user based on role
- How can i resolve 301 redirection Issue on my website?
- https – too many redirects
- Why does WordPress redirect when I separate wp-core and wp-content?
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- A WordPress site with more than one domain name / Parked domains
- Redirect user if they are not logged in
- Logout without confirmation and SAME window on mobile
- How to redirect a wrong search on my wordpress website to the error 404 page?
- store URL global before we redirect
- Redirect to page for KPI/marketing purpouses
- Will deleting WP’s code in .htaccess cause problems?
- Migrating to Tumblr [closed]
- Parked domain redirect
- Redirect 301 of old urls to wordpress urls
- How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
- How to fix automatic redirects?
- Redirecting DNS without breaking everything
- get_bloginfo prints IP instead of url
- How to redirect non existent pages/posts in wordpress using htaccess
- How to redirect all page requests to a single “goodbye” homepage? [duplicate]
- redirect second domain to static page
- Endless Redirects Suddenly Disable Site
- Redirecting home to /wp-login.php?action=register
- How to redirect a child page to its parent page?
- 301 redirect after removing language directories
- Redirect to custom login page if not logged in and redirect to home if logged in user try to login, how?
- wp_login_form() redirect same page
- Erase the HTML website and replace it with a WordPress website -301 Redirection
- How to replace the links http to https
- Redirect user after login to prior page through a wp_login hook
- Redirect *.php to path using web.config file
- How can force redirected to login for two or more pages to view or access
- Auto redirect to different web page
- Redirect only PDFs in different folders?
- Login redirects to home page and doesn’t log in
- wp_redirect() not redirecting user to supplied URL
- using wp_rewrite but keep the original url in the address bar
- Some links keeps redirecting to another domain
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- Redirect every link that starts with
- login redirect problem – db charset issue?
- Redirecting page 1 to default permalink
- Redirect problem: How to redirect to the original URL after login
- .htaccess not working after page slug change
- can’t handle a redirect
- Login Form Redirection
- Wrong Redirection
- Rewrite rule for incoming urls
- Hosting the WordPress website on someone else’s web URL
- Detect if request is coming from wordpress conditional statement
- Can I redirect the http request towards an old folder to the homepage using .htaccess file? [closed]
- Hide page for user logged and redirect for profile? [duplicate]
- Redirect URL while building site
- Redirect a WP to another with all URL
- Creating custom link that redirects to a another link
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- How to disable login and registration pages?
- Forcing header cache control in 404 pages
- Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]
- Redirect certain 404 pages to parent page