Mobile app version of vmapp.org
Login or Join
Smith883

: 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

@Smith883

Posted in: #Htaccess #Multilingual #Redirects #Seo

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Smith883

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

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">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme