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. International SEO
  4. Multilang site: Auto redirect 301 or 302?

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.

Multilang site: Auto redirect 301 or 302?

International SEO
redirect 301 redirect 302 international seo
3
5
4.9k
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.
  • fJ66doneOIdDpj
    fJ66doneOIdDpj Subscriber last edited by Dec 6, 2021, 9:43 AM

    We need to establish if 301 or 302 response code is to be used for our auto redirects based on Accept-Language header.

    https://domain.com
    30x > https://domain.com/en
    30x > https://domain.com/ru
    30x > https://domain.com/de

    The site architecture is set up with proper inline HREFLANG.
    We have read different opinions about this, Ahrefs says 302 is the correct one:
    https://ahrefs.com/blog/301-vs-302-redirects/
    302 redirect:
    "You want to redirect users to the right version of the site for them (based on location/language)."

    You could argue that the root redirect is never permanent as it varies based on user language settings (302)
    On the other hand, the lang specific redirects are permanent per language:

    IF Accept-Language header = en
    https://domain.com > 301 > https://domain.com/en
    IF Accept-Language header = ru
    https://domain.com > 301 > https://domain.com/ru

    So each of these is 'permanent'.

    So which is the correct?

    Tom.Capper 1 Reply Last reply Dec 7, 2021, 10:38 AM Reply Quote 0
    • Scottoffroad
      Scottoffroad last edited by Oct 11, 2022, 2:10 AM

      Hi Guys i am newer to SEO. my web with the 301 302 issue. anyone able help to fix it? will be high appreciated.

      Internal URL
      Yes
      Full URL
      https://myoffroadled.com/led-rocker-switch
      HTTP status code
      301 Moved permanently
      First found at
      Seed URL
      Content type
      text/html; charset=utf-8
      Depth
      0
      Redirect URL
      https://www.myoffroadled.com/led-rocker-switch/
      Not crawled
      Is redirect loop
      No
      Page rating
      100

      1 Reply Last reply Reply Quote 0
      • topic:timeago_earlier,10 months
      • Tom.Capper
        Tom.Capper Subject Expert @fJ66doneOIdDpj last edited by Dec 10, 2021, 2:56 PM

        @fj66doneoiddpj In some cases users may have a reason for using the site in something other than their browser language.

        For example, perhaps a shared device, or simply wishing to check a different localisation.

        If your hreflang is working correctly, they should never see the "wrong" version anyhow.

        But, there are pros and cons of course.

        1 Reply Last reply Reply Quote 0
        • fJ66doneOIdDpj
          fJ66doneOIdDpj Subscriber last edited by Dec 7, 2021, 12:45 PM

          Thank you for the reply, 302 is also what we decided after many hours of reading.
          The main reason for auto redirect is that we feel it's a better user experience as user will arrive the content target to his/her browser language.

          Tom.Capper 1 Reply Last reply Dec 10, 2021, 2:56 PM Reply Quote 0
          • Tom.Capper
            Tom.Capper Subject Expert @fJ66doneOIdDpj last edited by Dec 7, 2021, 10:38 AM

            @fj66doneoiddpj

            I would use a 302 here, just as an added insurance in case you ever accidentally serve Google the redirect.

            However, I'm not a huge fan of auto redirects in general - they tend to cause issues for crawlers and users alike. Can you explain a bit more when/why the user gets redirected? Perhaps instead you could serve a country selection insterstitial if a user seems to be on the "wrong" variant?

            1 Reply Last reply Reply Quote 1
            • 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

            • MarkCanning

              Advise on the right way to block country specific users but not block Googlebot - and not be seen to be cloaking. Help please!

              international seo crawling

              Hi, I am working on the SEO of an online gaming platform - a platform that can only be accessed by people in certain countries, where the games and content are legally allowed.
              Example: The games are not allowed in the USA, but they are allowed in Canada. Present Situation:
              Presently when a user from the USA visits the site they get directed to a restricted location page with the following message: RESTRICTED LOCATION
              Due to licensing restrictions, we can't currently offer our services in your location. We're working hard to expand our reach, so stay tuned for updates! Because USA visitors are blocked Google which primarily (but not always) crawls from the USA is also blocked, so the company webpages are not being crawled and indexed. Objective / What we want to achieve: The website will have multiple region and language locations. Some of these will exist as standalone websites and others will exist as folders on the domain. Examples below:
              domain.com/en-ca [English Canada]
              domain.com/fr-ca [french Canada]
              domain.com/es-mx [spanish mexico]
              domain.com/pt-br [portugese brazil]
              domain.co.in/hi [hindi India] If a user from USA or another restricted location tries to access our site they should not have access but should get a restricted access message.
              However we still want google to be able to access, crawl and index our pages. Can i suggest how do we do this without getting done for cloaking etc? Would this approach be ok? (please see below) We continue to work as the present situation is presently doing, showing visitors from the USA a restricted message.
              However rather than redirecting these visitors to a restricted location page, we just black out the page and show them a floating message as if it were a model window.
              While Googlebot would be allowed to visit and crawl the website. I have also read that it would be good to put paywall schema on each webpage to let Google know that we are not cloaking and its a restricted paid page. All public pages are accessible but only if the visitor is from a location that is not restricted Any feedback and direction that can be given would be greatly appreciated as i am new to this angle of SEO. Sincere thanks,

              International SEO | Apr 29, 2024, 12:06 PM | MarkCanning
              0
            • Damian_Ed 0

              Unsolved Temporary redirect from 302 to 301 for PNG File?

              302 temporary riderect 301 http status image issue

              #302HTTP #temporaryredirect
              Hi everyone, Recently I have faced a crawl issue with my media images on website. For example this page url https://intreface.com/wp-content/uploads/2022/12/Horion-screen-side-2.png has 302 HTTP Status and the recommendation is to change it 301. I have read the article on temporary redirections here:
              https://moz.com/learn/seo/redirection?_ga=2.45324708.1293586627.1702571936-916254120.1702571936
              but its not written here how to redirect in my HTML 1 image url not the landing page.
              Screenshot 2023-12-15 at 11.02.40.png
              I have messaged to MOZ Support but they recommended to go for the MOZ Community!
              Screenshot 2023-12-15 at 11.06.02.png Could you assist me wit this issue please? I can reach HTTML of the necessary page and change what I need for permanent redirection but firstly I need to understand how to do that correctly.

              Technical SEO | Jan 23, 2024, 5:26 AM | Damian_Ed 0
              0
            • lcourse

              Baidu Webmaster Tools: How to setup in "Site Properties" the field "Affiliate subject"?

              baidu china baidu webmaster tools

              Hi ,
              finally I managed to setup my site in Baidu Webmaster Tools with the help of a freelance staff member in China. Site is verified and sitemap submitted. In section "Site Properties", field "Affiliate subject" I can't figure out after extensive search what I need to setup here for a foreign company without any presence and without company registration in China. Anybody can help? When I click on this field, it indicates "Site association subject is a necessary link for mobile resources to enter search." so my site will not show up in mobile results without it? Grateful for any tips on how to resolve this piece of puzzle of the baidu setup.
              Thanks

              International SEO | Jan 27, 2024, 7:52 PM | lcourse
              0
            • aplusnetsolutions

              How can I make a list of all URLs indexed by Google?

              redirect indexed urls google url index google broken links

              I have a large site with over 6000 pages indexed but only 600 actual pages and need to clean up with 301 redirects. Haven't had this need since Google stopped displaying the url's in the results.

              SEO Tactics | Dec 11, 2023, 4:12 PM | aplusnetsolutions
              0
            • MMcCalden

              Setting up international site subdirectories in GSC as separate properties for better geotargeting?

              My client has an international website with a subdirectory structure for each country and language version - eg. /en-US. At present, there is a single property set up for the domain in Google Search Console but there are currently various geotargeting issues I’m trying to correct with hreflang tags. My question is, is it still recommended practise and helpful  to add each international subdirectory to Google Search Console as an individual property to help with correct language and region tagging? I know there used to be properly sets for this but haven’t found any up to date guidance on whether setting up all the different versions as their own properties might help with targeting. Many thanks in advance!

              International SEO | Dec 9, 2020, 4:10 AM | MMcCalden
              0
            • MaxSydenham

              Redirect to 'default' or English (/en) version of site?

              Hi Moz Community! I'm trying to work through a thorny internationalization issue with the 'default' and English versions of our site. We have an international set-up of: www.domain.com (in english) www.domain.com/en www.domain.com/en-gb www.domain.com/fr-fr www.domain.com/de-de and so on... All the canonicals and HREFLANGs are set up, except the English language version is giving me pause. If you visit www.domain.com, all of the internal links on that page (due to the current way our cms works) point to www.domain.com/en/ versions of the pages. Content is identical between the two versions. The canonical on, say,  www.domain.com/en/products points to www.domain.com/products.  Feels like we're pulling in two different directions with our internationalization signals. Links go one way, canonical goes another. Three options I can see: Remove the /en/ version of the site. 301 all the /en versions of pages to /. Update the hreflangs to point the EN language users to the / version. **Redirect the / version of the site to /en. **The reverse of the above. **Keep both the /en and the / versions, update the links on / version. **Make it so that visitors to the / version of the site follow links that don't take them to the /en site. It feels like the /en version of the site is redundant and potentially sending confusing signals to search engines (it's currently a bit of a toss-up as to which version of a page ranks). I'm leaning toward removing the /en version and redirecting to the / version. It would be a big step as currently - due to the internal linking - about 40% of our traffic goes through the /en path. Anything to be aware of? Any recommendations or advice would be much appreciated.

              International SEO | May 7, 2017, 3:44 AM | MaxSydenham
              0
            • Corel

              Non US site pages indexed in US Google search

              Hi, We are having a global site wide issue with non US site pages being indexed by Google and served up in US search results.  Conversley, we have US en pages showing in the Japan Google search results. We currently us IP detect to direct users to the correct regional site but it isn't effective if the users are entering through an incorrect regional page.  At the top of each or our pages we have a drop down menu to allow users to manually select their preferred region.  Is it possible that Google Bot is crawling these links and indexing these other regional pages as US and not detecting it due to our URL structure? Below are examples of two of our URLs for reference - one from Canada, the other from the US /ca/en/prod4130078/2500058/catalog50008/ /us/en/prod4130078/2500058/catalog20038/ If that is, in fact, what is happening, would setting the links within the drop down to 'no follow' address the problem? Thank you. Angie

              International SEO | May 25, 2012, 4:11 AM | Corel
              0
            • theLotter

              Redirecting users based on location

              My site is available in EN, DE, SW, SP, FR, IT, CH and JP. However, the EN sites ranks much better than the other languages, and even when searching in another language the EN homepage is normally the result that appears. Would it be worthwhile to automatically redirect users to the site in the same language they are searching in or country they are searching from? If so, how do I go about this? Thanks!

              International SEO | Jan 5, 2016, 6:07 PM | theLotter
              0

            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.