I have two modules that should over ride other urls, basically
/management/category/edit/id/1 (Edit Category Page)
/management/category/index (Index Page Of Category in Management Module)
/management/category (Index Page Of Category in Management Module)
/women-like-men/category (URL Routed from /default/category/view/id/women-like-men)
The rules for the above are:
$router->addRoute('view-category', new Zend_Controller_Router_Route(':id/category/:page', array('module' => 'default', 'controller' => 'category', 'action' => 'view', 'page' => null)));
$router->addRoute('management/category', new Zend_Controller_Router_Route('management/category/', array('module' => 'management', 'controller' => 'category', 'action' => 'index')));
There are alot of similar pages like this that "conflict" (Gallery, Movie, User) etc.
What I would really like is a rule that says /management/* route to module management/controller/action and ignore the rules below, anything with /management over rides. The likely hood of a user/gallery/movie/category being called management is low anyway.
Is it possible?
Edit, I have made this:
$router->addRoute('administration', new Zend_Controller_Router_Route_Regex('management/?(.*)/?(.*)', array('module' => 'management'), array(1 => 'controller', 2 => 'action')));
/management/category works fine, however anything after results in a 404