I've created a website at mysite.nl/drupal. Enabled i18n module (6.x-1.0-beta1). Added 3 languages: Dutch, English and Spanish. Set language negotiation to "path prefix only" (nl, en and es respectively). Put the language switcher in the header. Now everything is working as expected: on www.mysite.nl/drupal/nl/ Dutch content is shown, on www.mysite.nl/drupal/en/ English content and Spanish on www.mysite.nl/drupal/es/.

Now I change the language negotiation to "domain name only" in order to use a different top-level domain for each language and I change the language prefixes to the proper domainnames in the language settings. Since I have drupal installed in a subdir /drupal, I had to add this to the domain name in language settings, otherwise the paths don't work. The urls in the language switcher block are correct, pointing to www.mysite.nl/drupal, www.mysite.org/drupal and www.mysite.es/drupal. My website shows at all three domains, however, only Dutch content is shown! Dutch is set as the default language. E.g. www.mysite.org/drupal shows Dutch content instead of English. Logging out makes no difference (not a user setting override). Content selection mode is set to "only current language" (but using other options doesn't work either). Changing the default language to English also makes no difference: content is still shown only in Dutch.

About my setup: mysite.nl is my main domain where the website is also hosted. The other 2 domains are pointing there with a server alias.

How can I make it work? Thanks in advance for your help!

Comments

ar-jan’s picture

Has anyone got a multi-domain multilingual website working? (using the "domain name only" option?). Or any advice on the above?

ar-jan’s picture

Just in case anyone reads this after searching, I did get this working on my local test server. What I did different is creating a multi-site setup, that is, create the appropriate directories in the /sites directory. In this case those were mysite.nl.drupal, mysite.org.drupal and mysite.es.drupal. I installed Drupal on just one domain and then copied the settings.php created during install to the other 2 dirs. Using Content Translation and Locale (Core) and i18n module I can get nodes in the appropiate language based on the domain name.

I don't know if it should be necessary to use a multi-site setup to use the "domain name only" option but it worked. Also, people might be interested in the Virtual Sites module, http://drupal.org/project/virtual_site. I did not test it, but it should be able to filter based on domain name, among other things.

drewish’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.