PDA

View Full Version : Multi-language: Language page served based on TLD or subdomain?



nctrnl
04 Oct 2010, 02:02 AM
Hey, first thread here.

I am maintaining a multilanguage Joomla website.

Each language has it's own path like this:

example.se/index.php/sv/hem
example.dk/index.php/da/forside
uk.example.dk/index.php/uk/home

The domains (example.se, example.dk, uk.example.dk) point to the same web folder.

The problem is that Google is counting all three domains as the same site, because the core or default language is Swedish (se, sv).
So after first visit, a user has to pick language by clicking on a flag.
In theory, you could end up with example.da/index.php/sv/hem.
To Google, this is double content.
If Google visits the first page on all three domains, and receives the swedish index on all of them, then it's not good. It's also a matter of user-friendlyness why I wan't some sort of php code for serving the correct page based on TLD or subdomain. As long as the first visit becomes correct, I won't have to worry about double content.

I am new to php, so I am wondering if it's even possible to accomplish this? Could someone please point me in the right direction, because this is ending in a SEO catastrophy :cold: