I know I've seen this done before but I can't find the information anywhere. I need to be able to route with .html extensions in the Zend Framework.
I.E. /controller/action.html should route to the appropriate controller / action.
We have an idea to throw away the .html extension with our .htaccess file but I think changing the route config would be the better solution.
Any advice is welcome.
The default route (without modules) is:
Which you can remove by:
Then add your version:
I was trying to do the same for an old application. Here is what worked for me.
A quick search on google yielded the following tutorials:
Extending Zend Framework Route and Router for custom routing
Routing and complex URLs in Zend Framework
This is the plugin I've used in several applications: