How to make url for static page shorter?

Hi,

How to make this url


http://localhost/blog/index.php?r=site/page&view=about

to be


http://localhost/blog/about

. Thanks

inside protected/config/main.php in the urlmanager (i think urlmanager already exists in a default installation)

look here http://www.yiiframework.com/doc/guide/topics.url

or try this:




         'urlManager'=>array(

             'urlFormat'=>'path',

             'showScriptName'=>false,

             'rules'=>array(

                 '<view>' => array('site/page'),

             ),