I made a regex route to route any segment to category except 2 values (home or about).
Now the problem I have is that when a user browses to my base url it also routes to category.
I’ve looked around and I can’t find a way to add an exception to my regex so that the homepage routes to index instead of category controller.
This is my code
<archive type="Zend_Controller_Router_Route_Regex">
<route>(^(?!home$|about$).*$)</route>
<defaults>
<controller>category</controller>
<action>index</action>
</defaults>
<reverse>%s</reverse>
</archive>`
if I add index or default to my exceptions it still routes to category
Add a static route that maps empty url to your index controller and action.