How do I write another rule?

I have a rule below,


'urlManager'=>array(

			'urlFormat'=>'path',

			'showScriptName'=>false,

			'urlSuffix'=>'',

			'rules'=>array(				

				'<id:[\w-]+>'=>'cms/cms/view',



How do I make another rule similar ‘<id:[\w-]+>’=>‘cms/cms/view’, … instead ‘<name:[\w-]+>’=>‘users/profile’,

you already have the rule just put it below the other rule.

it is also the same kind of rule

first rule , i use for CMS way display another rule is same to display user profile by name wise?

this should do it




'rules'=>array(                         


     '<id:[\w-]+>'=>'cms/cms/view',

     'user/<name:[\w-]+>'=>'users/profile',