Using a different domain name for each language

Drupal makes it easy to serve different language versions of your websites from different domains.

This allows you, for example, to have English contents in www.yourdomain.com and Spanish contents in spanish.yourdomain.com.

Different languages can be in subdomains or completely different domains, including different top level domains (TLDs).

To do this, you'll need to setup Drupal to serve different languages in different domains and you'll also need to setup your web server to point all domains to the same Drupal site.

Setup in Drupal

1) Go to /admin/settings/language/configure and select "Domain name only" as the Language negotiation.

domain name configure

2) Go to the language administration page, /admin/settings/language and edit each language to include the domain name

For English:

English language domain

For Spanish:

Spanish Language Configure

 

Setup in the server configuration file

Once you've set up Drupal to serve differnt languages in different domains, you need to instruct your web server to send requests from multiple domains to the same Drupal site.

In Apache, you'll need to edit the .conf file and add aliases to all the different domains. For example:

ServerName www.yourdomain.com
ServerAlias spanish.yourdomain.com

In addition to this, you'll also need to point the domain name server (DNS) to your server for all the domain names in different languages.

Kommentare

Worth a tweet

Dude, your article certainly deserves a tweet. I'll add a reference to it in my "configuring drupal for multiple languages" tutorial series, here:

http://www.isegura.es/blog/drupal-multiple-languages-part-one-core-confi...

Also check out Translation Management

While you're at it and writing a guide, have a look at Translation Management.

It replaces the Translation Overview module and builds a whole new level of management for the translation process.

Enjoy!

multilanguage, domaines and admin interface

I've got a setup with i18n and 2 domain names for 2 different languages. Works great.

However I've also imported the drupal translation for these 2 languages. Now I'm not able to English as admin-interface language for my foreign language.

I know it should be able to keep the two languages (frontend-backend) apart but it doesn't seem to work (the last checkbox at admin/settings/language/i18n is unchecked and the language in my account is also set correctly).

Could it be that it is impossible to do this when domain names are used as language selector?

multisite multilanguage multidomaine

I've created a multisite : http://www.wezbe.com
I've created a subsite with UK language http://phonecards.wezbe.com.

How can I create the subsite with french translation with this url : http://telecartes.wezbe.com ?

Thanks