Url Rewriting Rule Help

Hi All

I am learning Yii and PHP, I have a question regarding

how to write a Rewrite Rule in URL management for the following requirement

My pages are like

[size="3"]/?r=controller/action&param1=4[/size]

I want to use the following URL format which should point to the above URL

[size="3"]/controller-action-param1-4.html[/size]

can someone please help?

Try this


'<c:\w+>-<a:\w+>-param1-<param1:\d+>' => '<c>/<a>'