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. Multilingual Site and 301 redirection

    Multilingual Site and 301 redirection

    Intermediate & Advanced SEO
    5 3 2.7k
    • 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.
    • Angelos_Savvaidis
      Angelos_Savvaidis last edited by

      Hey there awesome people of Moz

      I have this site that has many languages in it.

      The main language is English and my developer did the following

      www.example.com ( is the main site ) which redirects with a 301 to www.example.com/en

      if your geo location is supported by our languages then you will automatically be redirected to whatever language you have in your country but does the first language with is english have to 301 redirect to www.example.com/en ?

      I thought that the right way is to just leave /en at the root file.

      Thanks in advance

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

        Hi Angelos. I agree. Having a 301 redirect that's always in place for going to /en is a bit redundant. If /en is the default option the default should be the root.

        Other redirection should be handled via 302 to the various languages with all the proper href-lang and alternate attributes. Per Google, "For language/country selectors or auto-redirecting homepages, you should add an annotation for the hreflang value "x-default" as well: "  Cheers!

        Angelos_Savvaidis 1 Reply Last reply Reply Quote 2
        • Angelos_Savvaidis
          Angelos_Savvaidis @RyanPurkey last edited by

          Why use a 302?

          RyanPurkey 1 Reply Last reply Reply Quote 0
          • RyanPurkey
            RyanPurkey @Angelos_Savvaidis last edited by

            For the other languages, it's going to be a conditional redirect, which is best handled by 302. Here it is from Google: http://googlewebmastercentral.blogspot.com/2014/05/creating-right-homepage-for-your.html :

            A third scenario would be to automatically serve the appropriate HTML content to your users depending on their location and language settings. You will either do that by using server-side 302 redirects or by dynamically serving the right HTML content.

            Remember to use x-default rel-alternate-hreflang annotation on the homepage / generic page even if the latter is a redirect page that is not accessible directly for users.

            Note: Think about redirecting users for whom you do not have a specific version. For instance, French-speaking users on a website that has English, Spanish and Chinese versions. Show them the content that you consider the most appropriate.

            Cheers!

            1 Reply Last reply Reply Quote 1
            • katemorris
              katemorris last edited by

              Hi Angelos.

              You have a great question and there are a few ways to take this.

              What I would recommend is having your www.example.com be a starter page that doesn't have your "homepage" content, but rather, asks people to pick a language. You can detect it from their browser settings or from the IP (whatever you do, do NOT redirect anything based on IP address) and prompt them from there, or just list them all. That page would be your x-default in HREFLANG terms. It's the page that doesn't have a language. Then all of the others would be linked to from there. This would of course have English as /en.

              You don't have to do that though. If you prefer, you can totally have www.example.com as all English, and just have the other languages under their subfolders. I would detect if you think the user prefers one of the other languages and use Javascript to popup a prompt to ask if they would prefer that language. If they say yes, then set a cookie and take them there. If not, it keeps them on the English URLs.

              Just please don't redirect anyone based on IP address. This can cause problems down the line.

              I hope that helps.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • How do you 301 redirect URLs with a hashbang (#!) format? We just lost a ton of pagerank because we thought javascript redirect was the only way! But other sites have been able to do this – examples and details inside
                JamesTDG
                JamesTDG
                0
                9
                7.9k

              • Does this require site-wide 301 redirects?
                Grabapple
                Grabapple
                0
                6
                197

              • What is the Effect of redirect on rankings of two different domains (websites) when site A is redirected to site B?
                GPainter
                GPainter
                0
                4
                154

              • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
                PatriotOutfitters81
                PatriotOutfitters81
                0
                3
                66

              • 301 Redirecting an Entire Site
                karl62
                karl62
                0
                7
                415

              • How to decide on which site to 301 redirect
                Ties.com
                Ties.com
                0
                3
                148

              • 301 or 302 Redirects to Mobile Site
                BrianJGomez
                BrianJGomez
                0
                2
                2.2k

              • My site penalized after 301 Redirect or redesign?
                RobertFisher
                RobertFisher
                0
                6
                917

              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