undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. GeoIP - Redirect all but target country

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

GeoIP - Redirect all but target country

Intermediate & Advanced SEO
3
5
3.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • cottamg
    cottamg last edited by Jan 31, 2012, 2:18 PM

    My client would like to redirect all non UK traffic from their UK site to their main group site.

    I am intending to use a .htaccess redirect, like this:

    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^GB$
    RewriteRule ^(.*)$ http://www.group.com$1 [R,L]

    I have tested the redirect at it works fine.

    My question is if I put this in place would it have any negative SEO impact on the UK site?

    1 Reply Last reply Reply Quote 0
    • joony2008
      joony2008 @Hannah_Smith last edited by May 12, 2012, 5:32 AM May 12, 2012, 5:32 AM

      Hello, Thanks for this, and this is an old thread but I had a very smilar question to this.

      What do you exactly mean by indexation problems?

      Do you mean the Google refuse to crawl UK site in this example? So they don't index UK webpages? I don't think this make sense? or I am getting a wrong idea.

      I am just wondering where you found this information. I did my homework and SEOmoz ppl talked about "cloaking" video by Matt Cutt and He says GeoIP redirecting is fine? I am no where close to an expert but had to ask this question because I was trying to do the same thing,

      http://www.seomoz.org/q/redirecting-root-domain-to-subdirectory-by-ip-addresses-country-specific

      Thank you!

      1 Reply Last reply Reply Quote 0
      • topic:timeago_earlier,3 months
      • Hannah_Smith
        Hannah_Smith last edited by Feb 3, 2012, 8:19 AM Feb 3, 2012, 8:19 AM

        You're welcome 🙂

        joony2008 1 Reply Last reply May 12, 2012, 5:32 AM Reply Quote 0
        • cottamg
          cottamg @Hannah_Smith last edited by Feb 3, 2012, 8:14 AM Feb 3, 2012, 8:14 AM

          Many many thanks Rebecca!

          The quality of this answer makes this years subscription worthwhile, and we are only a month in.

          Must have taken you some time, it is much appreciated.

          Cheers, Gary.

          1 Reply Last reply Reply Quote 0
          • Hannah_Smith
            Hannah_Smith last edited by Feb 1, 2012, 11:07 AM Feb 1, 2012, 11:07 AM

            Hi Gary,

            This sort of redirect can cause indexation problems.

            Typically Google crawls from the US -  and as such the bots may only see your US content - no UK content = no UK rankings - so this isn't a solution which I'm keen to recommend.

            If you really need to implement something like this, you could try doing what cheapflights.com do. For example if you visit cheapflights.com from a UK IP they redirect you to this international choice page -

            http://www.cheapflights.com/workers/profile-select.aspx?sref=CFUK&redirect=GeoIP&geoip=GB&cfref=CFUS&spt=Home&rp=/:

            This solution allows the bots to crawl both versions of the sites, plus it allows users to select which version of the site they wish to see.

            You might also consider one of the following -

            a) Don't do any IP redirection, but upweight the links to the international sites so that there is a clear route for users to find the right version of the site.

            b) Use IP detection to show a JavaScript overlay suggesting non-UK users might want to visit the main group site - but don't actually redirect them.

            I hope this helps 🙂

            Hannah

            cottamg 1 Reply Last reply Feb 3, 2012, 8:14 AM Reply Quote 0
            • 1 / 1
            1 out of 5
            • First post
              1/5
              Last post

            Got a burning SEO question?

            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


            Start my free trial


            Browse Questions

            Explore more categories

            • Moz Tools

              Chat with the community about the Moz tools.

            • SEO Tactics

              Discuss the SEO process with fellow marketers

            • Community

              Discuss industry events, jobs, and news!

            • Digital Marketing

              Chat about tactics outside of SEO

            • Research & Trends

              Dive into research and trends in the search industry.

            • Support

              Connect on product support and feature requests.

            • See all categories

            Related Questions

            • Kahuna_Charles

              Someone redirected his website to ours

              Hi all, I have strange issue as someone redirected website http://bukmachers.pl to ours https://legalnibukmacherzy.pl We don't know exactly what to do with it. I checked backlinks and the website had some links which now redirect to us. I also checked this website on wayback machine and back in 2017 this website had some low quality content  but in 2018 they made similar redirection to current one but to different website (our competitor). Can such redirection be harmful for us?  Should we do something with this or leave it, as google stop encouraging to disavow low quality links.

              Intermediate & Advanced SEO | Jul 24, 2019, 11:18 AM | Kahuna_Charles
              1
            • Easigrass

              Help with force redirect HTTP to HTTPS

              Hi, I'm unsure of where I should be putting the following code for one of my Wordpress websites so that they redirect all HTTP requests to HTTPS. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] This is my current htaccess file: *missing

              Intermediate & Advanced SEO | Oct 23, 2017, 9:48 AM | Easigrass
              0
            • WeAreDigital_BE

              Geo-Redirect: good idea or not?

              Hi Mozzers, The background: I have this very corporate .com domain which is used worldwide. Next to that, we have another .com domain which is specifically created for the US visitors. Within the organic rankings, we notice that our corporate domain is ranking much better in the US. Many visitors are arriving on this domain. As it is a corporate domain being used worldwide, they get lost. My questions: I know there are ways to redirect by location. Would it be smart to automatically redirect US visitors for the corporate domain to the commercial US-specific domain? Is it possible to only redirect US visitors and leave the website as it is for visitors from other countries. Won't this harm the corporate website (organically) worldwide? If this would be a good idea, any recommended plugins or concrete procedures? Thank you so much for helping me out!
              Sander

              Intermediate & Advanced SEO | Sep 25, 2015, 9:12 AM | WeAreDigital_BE
              0
            • tidybooks

              Wrong country sites being shown in google

              Hi, I am having some issues with country targeting of our sites. Just to give a brief background of our setup and web domains We use magento and have 7 connected ecommerce sites on that magento installation 1.www.tidy-books.co.uk  (UK) - main site 2. www.tidy-books.com (US) - variations in copy but basically a duplicate of UK 3.www.tidy-books.it (Italy) - fully translated by a native speaker - its' own country based social medias and content regularly updated/created 4.www.tidy-books.fr  (France) - fully translated by a native speaker - its' own country based social medias and content regularly updated/created 5.www.tidy-books.de (Germany) - fully translated by a native speaker - uits' own country based social medias and content regularly updated/created 6.www.tidy-books.com.au (Australia) - duplicate of UK 7.www.tidy-books.eu (rest of Europe) - duplicate of UK I’ve added the country and language href tags to all sites. We use cross domain canonical URLS I’ve targeted in the international targeting in Google webmaster the correct country where appropriate So we are getting number issues which are driving me crazy trying to work out why The major one is for example If you search with an Italian IP in google.it  for our brand name Tidy Books the .com site is shown  first then .co.uk and then all other sites followed on page 3 the correct site  www.tidy-books.it The Italian site is most extreme example but the French and German site still appear below the .com site. This surely shouldn’t be the case? Again this problem happens with the co.uk and .com sites with when searching google.co.uk for our keywords the .com often comes up before the .co.uk so it seems we have are sites competing against each other which again can’t be right or good. The next problem lies in the errors we are getting on google webmaster on all sites is having no return tags in the international targeting section. Any advice or help would be very much appreciated. I’ve added some screen shots to help illustrate and happy to provide extra details. Thanks UK%20hreflang%20errors.png de%20search.png fr%20search.png it%20search.png

              Intermediate & Advanced SEO | Feb 4, 2015, 6:38 AM | tidybooks
              1
            • Locals

              Primary Domain or Redirect?

              We are starting a new travel guide for a resort town. I have bought an expired domain with decent related links and PR (which seems to have survived the transfer (4 months ago). Beofre we launch the new site I am trying to decide if we should use this expired domain as the primary URL for the new site or just do a permanent redirect and buy a new domain that better matches the theme of the site. I am obviously concerned with starting from scatch with a new domain. I am confident we can build some good rellevant links in a short time but this space is very competetive. Any input would be greatly appreciated.

              Intermediate & Advanced SEO | May 29, 2013, 2:19 PM | Locals
              0
            • theLotter

              302 redirects in the sitemap?

              My website uses a prefix at the end to instruct the back-end about visitor details. The setup is similar to this site - http://sanfrancisco.giants.mlb.com/index.jsp?c_id=sf with a 302 redirect from the normal link to the one with additional info and a canonical tag on the actual URL without the extra info ((the normal one here being http://sanfrancisco.giants.mlb.com,) However, when I used www.xml-sitemaps.com to create a sitemap they did so using the URLs with the extra info on the links... what should I do to create a sitemap using the normal URLs (which are the ones I want to be promoting)

              Intermediate & Advanced SEO | Jun 7, 2013, 10:46 AM | theLotter
              0
            • NakulGoyal

              Wildcard Redirects & Canonical Tags

              I have an interesting situation. Current URLs Example1: www.domain.com/red-widgets-cid-1234.html
              www.domain.com/red-widgets-cid-1234-1.html
              www.domain.com/red-widgets-cid-1234-1-1.html Canonical on All Above URLs:
              www.domain.com/red-widgets-cid-1234.html New URL:
              www.domain.com/red-widgets-cid-4567.html Current URLs Example2: www.domain.com/red-widgets-cid-1234+10.html
              www.domain.com/red-widgets-cid-1234+10-1.html
              www.domain.com/red-widgets-cid-1234+10-1-1.html Canonical on All Above URLs:
              www.domain.com/red-widgets-cid-1234+10.html New URL:
              www.domain.com/red-widgets-cid-6789.html Current URLs Example3: www.domain.com/red-widgets-cid-1234+10+5.html
              www.domain.com/red-widgets-cid-1234+10+5-1.html
              www.domain.com/red-widgets-cid-1234+10+5-1-1.html Canonical on All Above URLs:
              www.domain.com/red-widgets-cid-1234+10+5.html New URL:
              www.domain.com/american-red-widgets-cid-6789+5.html I want to make sure all variations of the above URL redirect to the new URLs.  However, as you see in Example 3, we are dealing with variables that are passed on. (+5 in this case). Question 1: What wildcard 301 redirect / regular expression can I use to tackle these ? Question 2: If we redirect www.domain.com/red-widgets-cid-1234+10+5.html to www.domain.com/red-widgets-cid-6789+5.html and www.domain.com/red-widgets-cid-6789+5.html contains the canonical tag www.domain.com/american-red-widgets-cid-6789+5.html, any concerns or red flags here ?

              Intermediate & Advanced SEO | Feb 5, 2013, 11:13 PM | NakulGoyal
              0
            • pbhatt

              301 Redirects After Company Acquisition

              We recently acquired a company, and now we are going to redirect all of the pages on their site to their respective pages on our site. Do we need to keep the original pages on their site active? For how long? Ideally, we would like to redirect everything and remove the old site entirely so we don't have to pay to keep hosting it. Is this possible? Thanks!

              Intermediate & Advanced SEO | Oct 11, 2011, 7:23 PM | pbhatt
              1

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy

            Looks like your connection to Moz was lost, please wait while we try to reconnect.