Can someone help me to get it right. I have a url: mysite.com/c?r=11&d=5555 , how to make a rule to this link that it points to mysite.com/site/myaction
I have done like this:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'<alias:c>'=>array('site/myaction'),
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
But after I go to mysite.com/c?r=11&d=5555 it says "bad request 11"