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. International Issues
    4. 302 Redirect based on Language Detection

    302 Redirect based on Language Detection

    International Issues
    3 3 3.3k
    • 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.
    • bjs2010
      bjs2010 last edited by

      Hi,

      Our online application, magento e-commerce, has a script that detects browser language and does a 302 redirection to the language of choice ... www.mydomain.com/en/ or www.mydomain.com/es/

      What's the SEO angle on this? Should I be concerned?

      thanks,

      Ben

      1 Reply Last reply Reply Quote 0
      • jesse-landry
        jesse-landry last edited by

        302s don't pass link juice. 301s do. Not sure how that fact works with what you're doing... Sounds tricky.

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

          Yes - forget the 302, I get nothing but headaches from them.  I would not use a 301 either as a permanent redirect would not be accurate in how you are relating one page to the other.   I think you need to consider if this needs to be automatic or not (regardless of how you forward people).  I would suggest using a Javascript based approach - here are the details on why.

          Here is an article from Bill Hunt http://searchengineland.com/understanding-the-seo-challenges-of-language-detection-47524 he mentions how you can use an automatic IP address or a browser language based approach to send people to the proper page.  There is a problem with this for the spiders.

          "Both of these methods are problematic for search engines, because spiders often crawl from a specific location and don’t signal language preference in their server request. For example, if Googlebot, crawling from Mountain View in California, requested a German language page on a site using IP detection the web server would detect an request from a IP in the U.S. and the crawler would be routed to the U.S. version and potentially never see the German language version. The same scenario on a site with browser detection would not detect any language preference and thus route the spider to the default version of the site which is typically English for US companies and the local language version for many country installations of scripts and web servers."

          Matt Cutts mentions this in http://www.youtube.com/watch?v=7paVYBgH0Hw for using IP as (in 2011) Google was only crawling from US IPs.

          Bill Hunt in his article mentions a solution, don't redirect the spiders "The easiest search workaround for either of these detection methods is to simply determine if the requester is a search engine and exempt them from any redirection, giving them the page they want. Note I did not say redirect them or any other action that could be misconstrued by conspiracy theorists as cloaking but simply let the spider have the page it requested. This will ensure spiders can index your local language content."

          If that gives you concern about to handle the automatic redirect - see the bottom of http://moz.com/community/q/what-countries-does-google-crawl-from-is-it-only-us-or-do-they-crawl-from-europe-and-asia-etc Hannah Smith from Distilled suggests using a Javascript overlay or some other "chooser page" to direct them to it.  If you link up everything correctly, Google can crawl both versions of the site, but only the user is shown something dynamic to direct them where they want to go.   This also ensures that if there are any errors in either the IP address shown or the default language in the browser, you have a way to fail gracefully and allow the user to select where they want to go on the site.

          Good luck!

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Redirect entire website or not?
            Dalerio-Consulting
            Dalerio-Consulting
            1
            2
            76

          • What is best way to display user reviews in languages different from the page language? (e.g. English reviews on a page in Spanish)
            0
            1
            47

          • Schema for languages Subfolders
            gfiorelli1
            gfiorelli1
            0
            3
            95

          • JavaScript IP-based redirection, best approach?
            0
            1
            443

          • If I redirect based on IP will Google still crawl my international sites if I implement Hreflang
            katemorris
            katemorris
            0
            2
            727

          • Dynamic Google search snippet text based on user's language
            MatthewBarby
            MatthewBarby
            0
            2
            205

          • What language to use for URL's for Russian language?
            LynnPatchett
            LynnPatchett
            0
            3
            6.8k

          • Content in different languages
            ChristopherM
            ChristopherM
            0
            2
            301

          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