I'm in the midst of moving a site from "plain old" php to the CakePHP framework and I need to be able to handle some legacy URLs, for example:
foo.com/bar.php?id=21
is the pattern of the current URLs, but in the new site using cake, that URL needs to redirect to:
foo.com/blah/21
So basically, I need to be able to grab that ID number and pass it along.
It may be that I'm working on about 4 hours sleep, but I can't seem to get it to work in /app/webroot/.htaccess
no matter what regex pattern I get.
I'm open to any solution that uses the .htaccess or routes.php - either way I'd be grateful for ideas!