hide controller in url

Is it possible to hide controller in the url so that an url like http://mysite.com/site/about would look like http://mysite.com/about ?

theese should be helpful:



Below is configuration of urlManager that worked for me, but in format: http://mysite.com/about.html. If we strip ‘.html’ from the end, I think you will need some additional logic, that will check if static page from url exist or not, and if it don’t exist, check if controller with that name exist.

'urlManager' => array (

            'urlFormat' => 'path',

            'caseSensitive' => 'false',


            'rules' => array (

                '<page:\w+>.html' => '/site/page/view/<page>',