Moving Legacy Url With Urlmanager

Hi. I need to replace a legacy url to a controller/action in Yii.

So say I have:


http://domain.com/utilz/pingme.php?whoami=AABB

and I need to serve this path by yii’s


http://wifinext.internavigare.com/mycontroller/ping/?whoami=AABB

I added this into urlManager’s rules:


'/utilz/pingme.php' => 'hotspot/ping/',

This rule works great for the example above, but if I add a dash to the parameter


http://domain.com/utilz/pingme.php?whoami=AA-BB-CC

then it doesn’t work anymore!

Any idea why? and how I can fix it?

thanks

that’s not problem with urlManager

what var_dump($_GET) shows?

you’re right, it was loading the https controller despite the action was coming from an http request, so I got puzzled.

thanks