I’m trying to use the following in my routes.php file:
Router::connect(
"/:slug/:controller/:action/:id",
array('controller' => ":controller", 'action' => ':action'),
array('id'=>'[0-9]','pass'=>array('id'))
);
This works fine on my test server but as soon as I upload to my production server I get a “Controller not found” error meaning CakePHP is trying to use the wrong route.
Normally I would think that it’s a misconfiguration on the server somewhere but I am running other cakephp sites on this same server and the pretty URL routing is working absolutely fine.
Thanks for your help!
I think you need to specify Regex condition for slug also ….