Multilang site: Auto redirect 301 or 302?
-
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/deThe 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/ruSo each of these is 'permanent'.
So which is the correct?
-
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 -
@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.
-
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. -
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?
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
How to rank a website in different countries
I have a website which I want to rank in UK, NZ and AU and I want to keep my domain as .com in all the countries. I have specified the lang=en now what needs to be done to rank one website in 3 different English countries without changing the domain extension i.e. .com.au or .com.nz
SEO Tactics | | Ravi_Rana0 -
Tracking International Keywords
Hi I haven't had much luck tracking keywords on my international sites let alone discovering new keywords. What are some strategies/suggestions to accomplishing this? Currently I have campaigns set-up for the UK, Germany, France, and China in additional to our main US-Canada campaign.
International SEO | | Julie.P0 -
Question regarding international SEO
Hi there, I have a question regarding international SEO and the APAC region in particular. We currently have a website extension .com and offer our content in English. However, we notice that our website hardly ranks in Google in the APAC region, while one of the main languages in that region is also English. I figure one way would be to set up .com/sg/ (or .com/au/ or .com/nz/), but then the content would still be in English. So wouldn't that be counted as duplicate content? Does anyone have experience in improving website rankings for various English-speaking countries, without creating duplicate content? Thanks in advance for your help!
International SEO | | Billywig0 -
Sponsor in flight ticket section
How can I be included in http://www.google.com/flights section in Serp for other languages like Persian e.g the keyword: بلیط هواپیما
International SEO | | fareli0 -
Redirected traffic and SEO problem
Hi all, I have a bit of a search engine predicament and I can't find the answer anywhere. It's a bit of a complicated one so please bear with me 🙂 ... I'm a Freelance Copywriter, I recently started the business, I've also recently moved to New Zealand. As such I'm looking for business back in the U.K. (As that's where my network is), but also locally, in NZ. I've purchased both the .co.uk and .co.nz domain names (http://www.inspirecontent.co.uk and http://www.inspirecontent.co.nz) The way that the domain provider / host has set these up is for one to redirect to another. Currently if someone visits www.inspirecontent.co.nz it redirects to the U.K. Site. That's less than ideal for me, because I dont want NZ traffic (i.e potential leads) to think I'm a U.K. Based business. my questions are as follows: 1. Will the redirect to the U.K. domain prevent me from appearing in NZ search (I.e if someone searches via google.co.nz) I'm really struggling to rank at the moment, I'm working on more content but if the redirect is a problem then I need to know about it so that I can find a work around. 2. Any suggestions on the best approach to the work around? It would be great if the URLs didn't change! So that you wind up from the U.K. on the U.K site, and if you're from NZ, you land on and stay on the NZ domain, but I'm not sure how to achieve that. One option, I think, would be to have two different websites, hosted separately, but I hear that duplicated content is bad for SEO? Thanks all in advance Kind regards
International SEO | | Andrea_howey0 -
301 juice from my old website to the new one?
Hi there! I am the proud webmaster of two websites, my old one: bioenergeticaconvicen.wordpress.com, currently with decent rankings in Google Spain (as bioenergeticaconvicen.com without the www, if i am not mistaken) on keywords like "Bioenergetica", "bioenergetica barcelona" "formacion en bioenergetica" "bioenergetica transpersonal" -You got the idea. 🙂 and my new one, "www.biomayeutika.org" , wordpress as well, with somehow decent rankings on "centro de bioenergetica" "bioenergetica" etc. It's a health an spiritual business: we dance, breath and mainly just feel our bodies without trying to control anything that happens. Cool 🙂 It's a very local business, aiming mostly for people from Barcelona/Catalonia but also for people from the rest of Spain. a) I guess my main question is just how to pass the old "SEO juice" to the new website. Currently, there's just a link on the old one pointing to the new one. b) Will I somehow merge the rankings of the two? c) How do i do a 301? which pages? With a wordpress plugin? Thanks very much in advance for your help. P.D.: Secondarily, I am open to suggestions on how to improve my SEO strategy (currently, none :)) I am very active in Facebook and have a few good videos and pictures, but I haven't really tried to do good SEO.
International SEO | | roybatti0 -
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 | | theLotter0 -
SEO Audit "Hybrid Site"
Hi everyone! I'm trying to analyze a website which is regional in scope. The way the site for every market has been build out is like this : http://subdomain.rootdomain.com/market | http://asiapacific.thisismybrandname.com/ph OR http://subdomain.rootdomain.com/language | http://asiapacific.thisismybrandname.com/en Since this is the first time I'm trying to work on these kinds of sites, I would want to ask for any guidance / tips on how to do about SEO site and technical audit. FYI, the owner of the sites is not giving me access / data to their webmaster account nor their analytics tracking tool. Thanks everyone! Steve
International SEO | | sjcbayona-412180