Dcycle Blog

settings.php setup when using multiple domains

August 18, 2014

When using multiple domains (one per language), I use language_domains, which requires that each environment be setup as follows (for example):

$base_url = 'http://fr.mysite.local';  // NO trailing slash!
/**
 * See https://www.drupal.org/project/language_domains
 */
$conf['language_domains']['en'] = 'en.mysite.local';
$conf['language_domains']['fr'] = 'fr.mysite.local';

Normally, we deploy variables with a site deployment module, but in this case the variables must have different values for each environment.