Yii url rewriting is not working for Multi Language Website
I am creating a website in two languages i.e. English and French. so i am
using this approach to make it possible.
SEO-conform-multilingual-urls-language-selector-widget
Everything is working fine by using this but url rwrite.
I have tried all of these below mentioned one by one but had no luck to
get desired one.
'<language:(en|es)>/our-services'=>'services/index' and
'<language:(en|es)>/<controller:services>/<action:index>/*'=>'<controller>',
and
'our-services' => 'services/index'
i am calling index function of service controller in navigation bar as
$this->createUrl('/services/index')
and i have already tried it by removing first slash before services and
also by adding last slash after index but no luck.
I need to customize my url for any language i use. yeah for sure url will
be same for both language but the content of pages will be differ as per
language( text is working fine for each language as
`Yii::t('file_name','array_key_name'))
Please help me ASAP
No comments:
Post a Comment