How to customize CMenu to remove site and index.php ?

I already customize my urlManager and my .htaccess




'urlManager'=>array(

			'urlFormat'=>'path',

         'showScriptName'=>'false',

         'urlSuffix'=>'.gs',

			'rules'=>array(

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

			),

		),



so that when i pass :


<a href="about"></a> 

this render the About page and this work great.

i use zii CMenu to build my Menu like this :





$this->widget('zii.widgets.CMenu',array(

         'id'=>'mainnav',

			'items'=>array(

				array('label'=>'Home', 'url'=>array('site/index')),



this resulting url is :


/home/index.php/site/index.gs

How can i really remove index.php and site from CMenu url??

Thanks a lot!




'showScriptName'=>false, // boolean false, not a string!



I think there was exactly the same topic some time ago with the same solution, strange :)