Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By michaels23 on
Hi all,
I have two domain names directed to the same Drupal site. I would like visitors browsing to one domain name to see content in English by default. For the other domain name, I'd like them to see Spanish by default.
If this is even possible, I'd love to hear your suggestions for the 'best practice.'
TIA!
Comments
SOLVED
FWIW, the solution I came up with was a simple usage of $db_prefix in settings.php:
$db_prefix = array(
'default' => 'peralta_',
'locales_meta' => 'peralta_abogados_',
);