A regex route should be able to handle this: resources.router.routes.pages.type = "Zend_Controller_Router_Route_Regex" resources.router.routes.pages.route = "([a-zA-Z0-9-]+).html" resources.router.routes.pages.defaults.controller = "pages" resources.router.routes.pages.defaults.action = "view" resources.router.routes.pages.map.1 = "name" resources.router.routes.pages.reverse = "%s.html"
You can read more about it here: http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.regex -- Hector On Fri, Mar 5, 2010 at 11:15 AM, asagala <[email protected]> wrote: > > Trying to figure out if I can implement something like this with Zend > routing. > > Here is what I would like to do > > - Keep the default route logic the same > - When an html page is requested forward it to PagesController index action > > Ex: http://hostname/controller/action -> this uses default route > http://hostname/p.html -> this should be routed to the PagesController > index action > > Is this possible? > > If so can someone guide me on how to implement. I have other routes in my > application but cant seem to get this working. > -- > View this message in context: > http://n4.nabble.com/Zend-routing-can-this-logic-be-done-tp1580002p1580002.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
