The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. GeoIP - Redirect all but target country

    GeoIP - Redirect all but target country

    Intermediate & Advanced SEO
    5 3 2.5k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cottamg
      cottamg last edited by

      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
      • Hannah_Smith
        Hannah_Smith last edited by

        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 Reply Quote 0
        • cottamg
          cottamg @Hannah_Smith last edited by

          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

            You're welcome 🙂

            joony2008 1 Reply Last reply Reply Quote 0
            • joony2008
              joony2008 @Hannah_Smith last edited by

              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
              • 1 / 1
              • First post
                Last post
              • If a page ranks in the wrong country and is redirected, does that problem pass to the new page?
                katemorris
                katemorris
                1
                2
                94

              • Country Redirect Javascript
                bjalc2011
                bjalc2011
                0
                4
                167

              • Targeting different countries with domain name
                DirkC
                DirkC
                0
                4
                1.3k

              • Content question about 3 sites targeted at 3 different countries
                ryanetc
                ryanetc
                0
                5
                170

              • Geoip redirection, 301 or 302?
                john4math
                john4math
                0
                5
                4.0k

              • How do 302 redirects from Akamai content targeting impact SEO?
                Positec
                Positec
                0
                3
                2.0k

              • Redirecting, then redirecting back
                Highland
                Highland
                0
                2
                256

              • Targetting site in 3 countries
                Dr-Pete
                Dr-Pete
                0
                11
                1.1k

              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
              • Digital Marketers
              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 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy