: Multi-language site, landing page Couldn't find a similar question here, and seems kinda simple, so sorry if this has been asked before. I'm developing a site with dual language, setup in the
Couldn't find a similar question here, and seems kinda simple, so sorry if this has been asked before.
I'm developing a site with dual language, setup in the following format:
www.example.com/en/ ~ English Site www.example.com/pl/ ~ Polish Site
Assuming the client would eventually like to share the site url as...
www.example.com/
... without addition language sub-directory, I will implement a .htaccess redirect, probably based on UA language.
Question: Will this affect SEO at all? Are there any 'best practices' here?
More posts by @Smith883
1 Comments
Sorted by latest first Latest Oldest Best
In each language-specific page, ensure you have the language set. Either use the <meta http-equiv="content-language" content="ll-cc"> tag in the section of your page, where "ll-cc" stands for the culture code of the language and country/region the content applies to, or use the lang="ll-cc" attribute on either the <html> or the <title> tag like <html lang="en-gb">. Then use hreflang tags to point back to the version in the alternate language.
For the landing page you should use an "x-default" to indicate it as a language/country selector or auto-redirecting homepage. So, you may end up with something like:
Default Homepage:
<html lang="x-default">
<link rel="alternate" href="https://www.example.com/en/" hreflang="en">
<link rel="alternate" href="https://www.example.com/pl/" hreflang="pl">
English Homepage:
<html lang="en">
<link rel="alternate" href="https://www.example.com/pl/" hreflang="pl">
<link rel="alternate" href="https://www.example.com/" hreflang="x-default">
Polish Homepage:
<html lang="pl">
<link rel="alternate" href="https://www.example.com/en/" hreflang="en">
<link rel="alternate" href="https://www.example.com/" hreflang="x-default">
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.