Answer the question
In order to leave comments, you need to log in
How to redirect yii2 language url?
Hello. I met a problem with the multilanguage url yii2 I did
everything according to this article https://habrahabr.ru/post/226931/
But the task is to redirect the language url to the subdomain
That is, instead of the result (at the moment)
example.com/ruwas -
ru.example.com
'http://<lang:\w+>.example.com/<action:\w+>' => 'http://<lang>.example.com/<action>'
Answer the question
In order to leave comments, you need to log in
I like this solution https://github.com/codemix/yii2-localeurls
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question