Answer the question
In order to leave comments, you need to log in
How to write a rule for cUrlManager taking into account site localization?
The site is written on yii framework 1.11. There are several language versions, all of them are located on subdomains, for example:
en.site.com
ua.site.com
And for subdomains there is a rule in .htaccess
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.site\.com$ [NC]
RewriteRule (.*) index.php?cn=%2 [NC,QSA]
'<cn:\w+>' => 'site/index',
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question