I am not sure of the best form, but first I would set up routing on php routes, for example:
Router::connect('/resources.php', array( 'controller' => 'resources', 'action' => 'index' ) );
(etc.)
After this check, when starting the action function that used the route, and if the * .php route was used, perform 301 redirects:
$this->redirect(array('controller' => 'resources', 'action' => 'index'), 301);
I think there is a more βreasonableβ way to implement this, but it was an idea. (using before_filter etc.)
Henri source share