On my site I need to have URLs of pages in this manner: /category/page4, so parameter passed into a controller is a number after the word "page". I managed to get URLs in the following manner: /category/page/4 (with an extra slash) using this code:
$router->addRoute('categoryPages', new Zend_Controller_Router_Route( '/category/page/:page', array( 'controller' => 'caegory', 'action' => 'index' ), array( 'page' => '\d+' ) )); I would expect to have URLs like /category/page4 with the following modification of this code:
// Simply removed one slash '/category/page:page' However, this code doesn't create routing I need. What is my mistake?