UrlManager Problem

Hi, there!

I create web app and i have News page with default url like:

www.domain.com/news/view/year/2011/month/06/title/this-for-news-title

Everything is ok. Until i change my config UrlManager->rules section to:




'urlManager'=>array(

    'urlFormat'=>'path',

    'showScriptName'=>false,

    'rules'=>array(

        'news/<year:\d{4}>/<month:\d{2}>/<title:\w+>.html'=>'news/view',

    ),

)



This config change news url to new url

www.domain.com/news/2011/06/this-for-news-title.html

But when i goto new url news link it’s showing error 404 on my page with message : The system is unable to find the requested action “2011”.

Any solution?

Thanks, :)

[font=arial, verdana, tahoma, sans-serif][size=2]<title:\w+> matches only letters, digits and underscores. You should either use underscore as separator character in title or change the regexp to allow dashes.[/size][/font]

Thanks, this working :)