Hi. I’m building a site for a client (in WP), and it will have 2 languages. My idea is to have each language in separate folder/installations, like domain.com/en and domain.com/es.
Default language will be english (/en), so my idea is to a have an index.html redirecting to /en folder. Then a language switcher on header.
My doubt: is this a valid structure for SEO? Will be Google (and other SE) indexing /en as the primary language, even with the root redirection?
Thanks in advance.
Why not have the main target audience in domain.com and the secondary language in domain.com/lang ?
If EN was the main target, you could then permanently redirect domain.com/en to the root domain.
For SEO purpose, you can use multilingual content markup. You can read Google explanation here,http://googlewebmastercentral.blogspot.com/2011/12/new-markup-for-multilingual-content.html
Thanks both. Still not sure what to do, but yeah, maybe using root for primary language instead is the right path.
@agusmu. – Never used alternate href lang links, it’s safe enough? Not sure if i should leave the decission of language directly to the user. Being spanish, sometimes i prefer to read sites in english, as translations are not always professional.
It is recommended by Google, so it worth to try…
Btw, have you tried WPML plugin? It works perfect for your scenario. The main website (root) will use English, and you will get /es in your Spanish post…