3

I am running a d6 website with i18n and I have multiple domain on it working very fine. Now I want to add another domain but for an existing language so what is the best solution for that.

In fact, this additionnal domain is for the mobile version of the website and because menus depends on language domain selection, I cant' get my menus using the mobile domain but the default domain, that's why I want to add another language but I can't :)

Maybe there is a simpler solution?

Thanks

1 Answer 1

0

I would rewrite second language domain to the "primary" one in settings.php Something like

if ($_SERVER['HTTP_HOST'] == 'newlang.example.com') {
  $_SERVER['HTTP_HOST'] = 'lang.example.com';
}
2
  • This advice saved me! Not sure why someone voted it down (wish people would elaborate when they do that). Commented May 21, 2014 at 0:01
  • OK - now I think I understand why this solution was voted down: it did solve a lot of problems, but it created a worse one: the newlang.example.com site displays menu links pointing to lang.example.com. Does anyone have any ideas on overcoming this? Maybe this solution can work if I just change some settings? Commented May 21, 2014 at 17:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.