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
-
Redirect entire website or not?
I have 2 websites: a UK health blog covering a wide range of topics (professional medical advice, diets, mental health), core business, strong brand, content ranks well, lots of valuable traffic, only 100 external links but all of good quality. We also sell some of our UK consultancy services on the site. small niche blog just covering fitness, every page has robots=noindex, 100x more traffic, 100% of traffic is from 500,000 external links on other websites talking about fitness matters (these range from spam to medium quality) , 95% of traffic is from countries we cannot serve, probably only 1% of the remaining 5% of traffic would be considered our target market, but the main concern is that the content is very out of date and should anyone see, it would be damaging to the UK health blog My dilemma is what do we do with the fitness website to make most business use, while ensuring little maintenance? Suggestions have been: Keep fitness blog running but make very basic content updates and remove robots=noindex Redirect fitness website urls to appropriate pages on UK health website We are on the verge of choosing option 2 but I have some SEO concerns about the impact of the redirects on the UK health website. Due to the volume of external links which mostly all reference 'fitness', is there any risk through redirects that Google might start thinking the UK health website is just about fitness? If so, is there any way to prevent this through certain redirects eg 307? Also with the fitness website having some spam related external links, is there any risk to the UK health website if these aren't disavowed before redirects are setup? If so, on which website should these be done? Thanks!
International SEO | | tah061 -
For My International Sites only Homepage in other Language rest Pages are in English. Hreflang required here?
Hello All, For my ecommerce site at my homepage there is an Language option of 9 different countries. My main site - abcd.co.uk and other sites are like this se.abcd.co.uk, fr.abcd.co.uk, es.abcd.co.uk etc From my main site if user clicks on fr.abcd.co.uk then France site will open but when he click on any link it will redirect to my UK site. On France site homepage if user hover the cursor then links are visible of UK site only. My query is ;- Do it required here to implement hreflang? As only homepage is in different language? Do it anything wrong in google point of view? Thanks!
International SEO | | wright3350 -
Is it OK to change language by user IP?
Hello, I just read https://support.google.com/webmasters/answer/182192?hl=en#1 about multilingual website. Google says "Avoid automatic redirection based on the user’s perceived language". so Is it ok to redirect url by user IP instead of user language?
International SEO | | visaasancard0 -
301 redirect .com to .nl
Hi guys, We have two job websites: one international job website (.com, PR5) and one Dutch job website (.nl, PR0). We have decided to focus on our Dutch job website and want to 301 redirect the international website to the Dutch website. Will this give us the boost we are hoping for on the Dutch site? Or does a .com redirect to .nl work different than a .nl to .nl redirect for example. We're hoping that the international juice will boost our Dutch website of course. Looking forward to your thoughts!
International SEO | | rodjer0 -
Geotarget subfolders with the same language or get rid of duplicates but lose option to geotarget?
Hi, we have a domain that is aimed to cover LatAm region. Currently, the homepage contains country selector for ~20 countries. 95% of them hold content in Spanish. We have only homepages for each regions as separate subfolders, i.e.
International SEO | | eset
www.maindomain.com/co
www.maindomain.com/cl
www.maindomain.com/br
etc. but once the user clicks on menu item he is taken back to main domain subpages, i.e. www.maindomain.com/comprar My struggle is to decide whether it is better to: A) copy all content for each subfolder, which will create huge amount of duplicates (there are no resources to create unique content and it is even impossible taking into account nature of the product - mostly tech.specs, etc.) and implement hreflang sitemaps and configure GWT to target each country with its own Spanish content (the same for each country) OR B) remove all local subfolders and keep only main domain in Spanish that will serve all countries within the region. With this option, we will get rid of duplicates but also lose option to geotarget. So, my questions is which option will do less harm, or if there is any other approach that comes to your minds. I consulted with two agencies but still haven't got clear answer. Thanks a lot for your help!0 -
GeoIP and redirects
I have been looking at an ecommerce site that uses a GeoIP module to take users to the relevant store, eg: domain.com/uk domain.com/us
International SEO | | edwardlewis
domain.com/euro
domain.com/row After using the SEO Moz site crawler, the GeoIP module is using 302 redirects to take users to the relevant page. So, domain.com 302s to domain.com/uk and so on. What is the impact of this in terms of SEO? Only the US version of the site was crawled by the site crawler, presumably because this was due to the US version of the site being shown based on the IP address. Links to the other stores are clearly placed in the header of the site but they weren't crawled. Thanks in advance 🙂0 -
How long does it take for google to realize there is a new language sub domain?
I have a global client who just launched new sub domains of their site in new languages (Spanish, Portuguese, Russian and Japanese). Example: es.client.com pt.client.com ru.amdocs.com ja.amdocs.com How long does it take for Google to recognize these new subdomains? Would submitting an XML sitemap be helpful? If so how long can we see them pick up the site? What is the best way to check that your new subdomains are showing in each countries SERPs? Thanks for your help!
International SEO | | Scratch_MM0 -
Different country, same language
I have read the blog posts by Rand and other community members at YouMoz but i still have a question on trageting and domains / sub-directories usage. Suppose, my business is located in France but my prospects are in US and UK as well. The issue is, they are not English speakers but French. If i use ccTLD, i don't think it will rank well in US and UK. gTLD will not be a good option for prospects in France. What should i do? Regards, Shailendra
International SEO | | IM_Learner1