S
S
Sergey2015-06-02 11:34:18
Yii
Sergey, 2015-06-02 11:34:18

How to make one multilingual application on different domains?

Good afternoon.
Given: one site, but multilingual on yii1 - divided into modules for each country (language), as there may be differences in views. Actually what is required: we have two domains xxx-ru.com, xxx-ch.com and some main xxx.com (for clarity) - you need content to be loaded from the first domain at the url xxx.com/ru, for the second xxx .com/ch respectively
The redirect will not work, because it is necessary that the domain remains xxx-ru.com throughout the user's "climbing" through the site. There is an idea to register all domains on one ip, then using aliases to redirect from xxx-ru.com to xxx.com/ru. Will it take off? apache2 server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-06-02
@Pjeroo

I would just modify the application's routing.
After that, you broadcast all domains to one virtual host, and everything works.
In Laravel 5, this works out of the box.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question