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. Technical SEO Issues
    4. Doubt with geoip redirection

    Doubt with geoip redirection

    Technical SEO Issues
    3 2 231
    • 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.
    • dMaLasp
      dMaLasp last edited by

      Hi everyone,

      I managed an international site with subfolders for for the countries (us, uk, fr, ...). The homepage has a geoip redirection to the specific user country.

      I've checked some old posts like this ones but it's not cleared for me if I should do a 301 or a 302 redirection.

      • https://moz.com/community/q/geoip-redirection-301-or-302
      • https://moz.com/community/q/geoip-and-redirects

      I know that the best approach it’s avoid automatic redirections but it's  not a possibility for me. So please, can you help me to decide what type of redirection should I use?

      1 Reply Last reply Reply Quote 0
      • RobertFisher
        RobertFisher last edited by

        It would help if you gave us a bit more data, but here goes:

        Use the 301 from the main site to the subfolder. Understand you do not want to have the subfolder then redirect back to the main site. If you do you are going to create a loop. So the assumption is that everyone is served the initial home page from the host country and in milliseconds, the IP is read and they are redirected. So, you are hosted in Denver, I am coming to you from Fr, and it auto redirects me to the Fr subfolder. (Question, this is occurring whether homepage or subpage correct? You are not just redirecting from homepage, correct?)

        I am assuming you have utilized hreflang notations correctly. Make sure to read the common mistakes at bottom of page.

        Hope this helps,

        Robert

        dMaLasp 1 Reply Last reply Reply Quote 2
        • dMaLasp
          dMaLasp @RobertFisher last edited by

          Thanks for the answer Robert.

          Yes, I´m using hreflang correctly and the serps of the different country versions shows the corresponding country folders.

          i.e. google.co.uk shows results from the uk folder, google.fr shows the fr folder,…

          The redirect only occurs on the homepage from mydomain.com to mydomain.com/fr, mydomain.com/uk,…..

          If a user is in the French folder but is located in London isn’t redirect to the UK folder.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • How do you fix redirect chains and temporary redirects?
            AllChargedUp
            AllChargedUp
            0
            7
            329

          • Redirects
            Adam.Whittles
            Adam.Whittles
            0
            2
            272

          • Delete 301 redirected pages from server after redirect is in place?
            RuthBurrReedy
            RuthBurrReedy
            0
            5
            4.0k

          • Redirect
            KeriMorgret
            KeriMorgret
            0
            4
            588

          • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
            Room214
            Room214
            0
            7
            1.1k

          • Redirect or not to redirect
            AlanMosley
            AlanMosley
            0
            7
            458

          • Redirects
            RyanKent
            RyanKent
            0
            10
            764

          • Redirect
            petrakraft
            petrakraft
            0
            9
            958

          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