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
-
Important pages are being 302 redirected, then 301 redirected to support language versions. Is this affecting negatively the linking juice distribution of our domain?
Hi mozzers, Prior to my arrival, in order to support and better serve the international locations and offering multiple language versions of the same content the company decided to restructure its URLs focused on locale urls. We went from
International SEO | | Ty1986
https://example.com/subfolder to https://example.com/us/en-us/new-subfolder (US)
https://example.com/ca/en-us/new-subfolder (CAN)
https://example.com/ca/fr-ca/new-subfolder (CAN)
https://example.com/de/en-us/new-subfolder (Ger)
https://example.com/de/de-de/new-subfolder (Ger) This had implications on redirecting old URLs to new ones. All important URLs such as https://example.com/subfolder were
302 redirected to https://example.com/us/en-us/subfolder and then 301 redirected to the final URL. According to the devs: If you change the translation to the page or locale, then a 302 needs to happen so you see the same version of the page in German or French, then a 301 redirect happens from the legacy URL to the new version. If the 302 redirect was skipped, then you would only be able to one version/language of that page.
For instance:
http://example.com/subfolder/state/city --> 301 redirect to {LEGACY URL]
https://example.com/subfolder/state/city --> 302 redirect to
https://example.com/en-us/subfolder/state/city --> 301 redirect to
https://example.com/us/en-us/new-subfolder/city-state [NEW URL] I am wondering if these 302s are hurting our link juice distribution or that is completely fine since they all end up as a 301 redirect? Thanks.1 -
Country and Language Specific URL Paths
Wanted to ask everyone a questions: So our company is going to be doing a website that is going to be full of videos. The url path will be country.domain.com/language/slug/content-id. We redirect the user when they go to the different country. So if you're in spain on a train to france your URL will change from es.domain.com/es/slug/content-id to fr.domain.com/es/slug/content-id. Each country can listen to each video in all languages. My question is with hreflang tags and canonicals. Aside from targeting users in a certain country via Google Search Console, how do I eliminate duplication and tell Google which I'd like to show up via which country. In spain I would like es.domain.com/es/slug/content-id to show in Google and would have hreflang tags on each of the es.domain pages but what about fr.domain.com/es/slug/content-id since it would show the same content? I can't canonical to one of them since I need them to show in their respective country. How do I show the difference in language and country without showing duplication?
International SEO | | mattdinbrooklyn0 -
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 -
Dynamic Google search snippet text based on user's language
On Google search results page, I want to show search snippet text (of my webpage) in Hindi language if user is user is using Google in Hindi language. If user chose another language on Google search page, my snippet text should be shown in that language. Is this possible? How?
International SEO | | Avinashmb0 -
Best practice for multi-language site?
Recently our company is going to expand our site from just english to multi-language, including english, french, german, japanese, and chinese. I deeply understand a solid and feasible plan is pretty important, so I want to ask you mozzers for help before we taking action! Our site is a business site which sells eBook software, for the product pages, the ranks are taken by famous software download sites like cnet, softonic, etc. So the main source of our organic traffic is the guide post, long-tail keywords. We are going to manually translate the product pages and guide post pages which targeting on important keywords into other languages. Not the entire english site. So my primary question is: should I use the sub-domain or sub-category to build the non-english pages? "www.example.com/fr/" or "fr.example.com"? The second question: As we are going to manually translate the entire pages into other languages, should I use the "rel=alternate hreflang=x" tags? Because Google's official guideline says if we only translate the navigations or just part of the content, we should use this tag. And what's your tips for building a multi-language site? Please let me know them as much as possible Thanks!
International SEO | | JonnyGreenwood0 -
Sudden drop in rankings after 301 redirect
We recently merged our old webshops to one big webshop. The new webshop is mutlidomain/multilanguage so the English version is at the .com extension and the germand version at the .de extension etc. etc. We redirected the 2 best old webshops to the .com extention with a htaccess 301 redirect. The other old webshops we divided over the other extensions. We redirected the 200 most importent pages with a page to page redirect and redirected the other indexed pages to the new index page. (300K) Everything went well and the new website started indexing. All extentions are doing well and even the .com version had very good rankings for a few days. After a few days we almost lost all rankings to the .com version. We did always clean seo, had 100% unique content written by our own writers and translated by our own translators. Our old webshops have very good branche related backlinks and i can`t find anything else then the 300K redirects to the homepage that might be the problem. Hope somebody will help us, or know someone we can hire to check our webmaster account, and check everything we did.
International SEO | | snorkel0 -
International (foreign language) URL's best practices
I'm curious if there is a benefit or best practice with regards to using the localized language on international sites (with specific ccTLDs). For example, should my french site (site.fr) use the french language as keywords within the URLs or should they be in english? e.g. www.site.fr/nourriture vs. www.site.fr/food Is that considered best practice for SEO (or just for brand perception those markets?). Is there a tangible loss in SEO if we do not use the correct language for those URLs and just stick with English around the world? I recall seeing a Matt Cutts video on the topic and he said that google does support i18n URL's but other SE's might not support them as gracefully but he didn't come down with a hard recommendation to go with i18n URL's or just English. Would love a strong ruling in favor one direction based on best practices.
International SEO | | mongillo0 -
SEO difficulty between languages?
Hello, I would like to know if there are certain factors that determine SEO difficulty between different languages or countries. Is doing SEO more difficult in Japan than in the United States? What would be some factors that could help determine the above? Thanks in advance,
International SEO | | SS-ose0