I have a trouble with urlmanager.I have a trouble with urlmanager. My config is below:
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'useStrictParsing'=>true,
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
'/'=>'site',
'/new-post"=>'newpost',
'/new-post/list-post/<cat:\w+>' =>'new/listpost/',
),
),
with link : http://blog.com/new-post/list-post/Yii-framework -> not work and display erro 404
And with link : http://blog.com/bai-viet/danh-sach/Database -> successfull
I try with link : http://blog.com/baiviet/danhsach/cat/Yii-framework --> ok
So How does it handle well, it’s hard