I want to make a website in two languages. I've looked around and settled on the directory option of separating both languages. How do I make it work? Let's say I have the following three files for the landing homepage, the English page and the Spanish page:http://www.domain.com/index.htmlhttp://www.domain.com/en/index.htmlhttp://www.domain.com/es/index.htmlLet's also say that /index.html will be in English, with a link to /es/index.html. In turn, /es/index.html will have a link to the English version. Would this be back to /index.html or to /en/index.html? How do I get both English versions (the one at the root and the one in the directory) to actually be the same file in the same directory? I'm new to this, so I'm not using any scripts yet. To me, the obvious solution is to duplicate both English versions and have the one at the root point to files under the /en/ directory, but I'm not a fan of duplication and I've learned that search engines really frown upon that. Anyone point me in the right direction?
How do you set up the directory structure for a multilingual site without duplicating content?
multilingual
I think you are on the right track here.  There are a few ways I've seen this done:Have the www.domain.com/index.html page be a simple language selection page with only links to the en and es home pages.  Personally I find this annoying, but I still see it all the time.Just sent everyone to the english version and have a link from there to the spanish version.  This is probably the best option if a large percentage of your users will be english speaking.Attempt to auto-detect language in some server side code, probably by looking at the Accept-Language header to see which language the user prefers, then send them to the appropriate page.