Changes
Title
unchanged
I18n subdomains and url-rules
Category
unchanged
Tutorials
Yii version
unchanged
Tags
changed
i18n, URL
Content
changed
[...]
<?php
...
'components' => array(
'i18n' => array(
'class' => 'I18n',
'urlRulesPath' => dirname(__FILE__) . '/i18n/urlRules',
'supportedLanguages' => array(
array('code' => 'en', 'name' => 'english', 'fallback' => true),[...]
* The application language will be set to the just figured out active language.
* The custom url rules will be included and passed to the urlManager component. The urlManager will be re-initialized to apply the custom rules.
* If a redirect-url was previously set, a redirect to that url will be executed.[...]
It's in the end up to you what you need, but I hope this example solution could give you a clue of how this can be done.
Feel free to share your thoughts and remarks - thank you.
### Links
[Russian version](http://dbhelp.ru/i18n-subdomains-and-url-rules/page/)