Try this:
$route = new Zend_Controller_Router_Route("admin/pages/*",
array(
"module" => "admin",
"controller" => "pages",
"action" => "index"
)
);
$router->addRoute("admin/pages/order", $route);
The *
gets it to match variables as key/value
pairs. So your example URL of http://www.example.com/admin/pages/by/date_added/order/asc/category/cars
should match, and would have the route params by
, order
and category
with the values from the URL. (Accessible from your controller via. $this->_getParam('order')
an so on.