302 Redirect based on Language Detection
-
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
-
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!
-
302s don't pass link juice. 301s do. Not sure how that fact works with what you're doing... Sounds tricky.
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
-
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
International SEO | | fJ66doneOIdDpj
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?0 -
301 redirection problem - Major lose of ranking in Google Search results
301 redirection problem - Major lose of ranking in Google Search results
International SEO | | AviramAdar
(site was almost completely removed from google search results) Hello,
I had a website ('DayUse' style) with the following url:
https://www.roomsindex.co.il/ Couple of days ago, I've made a 301 redirection to:
https://www.hour.co.il/ The redirection was made on 2 levels:
1. Server side- on htaccess file.
2. Google Search Console - Change of address page. Bare in mind the following things: The site's structure (url addresses) & the code hasn't changed (for sure). Both redirections are 100% valid (for sure). All the website pages were indexed (for sure). There isn't a penalty on any of the above domains (for sure). The website was almost completely removed from Google search results. For example: Before the redirection the website was ranked 10 in my main keyword "Rooms by hour" (translation from Hebrew), now the website removed. Also, the website removed from almost all the search terms it was ranked before. My question is, off course, WHY???
By the details on the following page, a proper 301 redirection shouldn't cause to such page ranking loss (As I mentioned- It almost completely disappeared)... https://support.google.com/webmasters/answer/6033049?utm_source=wnc_807001&utm_medium=gamma&utm_campaign=wnc_807001&utm_content=msg_914100&hl=en-IL search-console-change-of-address.png0 -
Schema for languages Subfolders
I'm using static Schema for each language subfolder in my website, Should i use the same "URL, description" for every language? or i have to use the URL and description according to the language? I'm using that schema for english should i change URL and description in the other languages? for example
International SEO | | MTBE0 -
Does replacing of external redirects impact SEO?
Previously I have asked about the replacing of internal redirects with actual live pages. The answer is, yes it'll work but may not be huge impact. Now I am concerned with external redirects. We have enough number of external redirecting links. I am thinking to replace them with actual landing pages. Will this improve SEO? Thanks, Satish
International SEO | | vtmoz0 -
International Site - Language Targetting
Hi Mozzers, I am currently conducting a technical site audit on a large website. Their main content and audience is in the US, but they have started to add translated versions of the content in different languages (about 30 different languages). Also, they are not using cookies or scripts to auto-populate the language on the page, and the pages seem to be getting indexed just fine. Currently, they have their language distinguished by sub-folder (i.e. example.org/blog/by-language/spanish/), which I plan to 301 redirect to example.org/blog/es/ for each language. However, they are not implementing any sitemaps or hreflang header tags. I have not dealt with this in the past as all of my work has been done on smaller US sites, so I wanted to verify the steps I plan to take to ensure this is a solid approach. 301 redirect example.org/language/spanish/blog/ to example.org/es/blog/ Recommend adding hreflang markup into the header for each language. (They have a lot of pages, so they may not implement this if it is too much work.) Highly recommend adding XML sitemaps for each content version of the site using the media flow HREFLANG Siitemap Tool. Setting up multiple Webmaster Tools accounts and geotargetting them by language. I would also add the XML sitemap for each language. Is this a solid approach, given the information above? I want to make sure I am fundamentally sound on this before suggesting so many large changes. Thank you in advance for any thoughts / wisdom you can instill! ---------------------additional information--------------------- If I am hearing you correctly, I would only submit one XML Sitemap for international content. It would look something like the below image. I would only use one GWT account to upload the file, and I would not need to add any additional markup on each page, as it will be located in the hreflang xml sitemap. Finally, would it be a good or bad idea to 301 redirect their naming convention to a new, shorter one? example.org/by-language/spanish/blog/this-is-an-example --> example.org/es/blog/this-is-an-example bpXAYlr.png
International SEO | | J-Banz0 -
CcTLDs 301 redirected to subfolders
My client has an international website and currently has a mixture of ccTLDs, subdomains, and subfolders for the country specific pages. We are trying to change this however they want to have ccTLDS because of the SEO benefit but 301 redirect them to subfolders because of the simplicity of management that subfolders provide. I believe that if they are really just working with subfolders, why don't they just use subfolders and use Google Webmaster Tools and XML Sitemaps to help Google understand each targeted country. My questions are: 1. Does having aht ccTLD example.ca 301 redirected to example.com/ca really benefit anything? 2. This client tends to spell out the name of the country even with country specific TLDs, and they can't change it, will this affect SEO? Ex: example.ca/canada. 3. What the best practice? example.ca/canada/en-ca/city or example.ca/canada/city/en-ca? Thanks!
International SEO | | nrv0 -
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 -
Intentional redirect for international visitors to a website
We are doing PPC for a new client, and using Clicktale to improve conversion rates. However, Clicktale won't work because the client does not want international visitors looking at their website (competitive reasons! - yeah don't get me started...). They have a redirect on for all international visitors which points to a "coming soon..." page Are there any SEO implications on traffic in their own country (they currently do rank for terms)? I'd like to go back with a strong case for them removing any international redirect. Thank You
International SEO | | CleverClicks0