views:

425

answers:

0

I have a couple of controllers in Zend Framework that starts with p: /p-home/index /p-store/index /p-form/submit

I need to write a router configuration file (using INI file) to automatically rewrite the url to other controllers that starts with s: /s-home/index /s-store/index /s-form/submit

I have tried the following but doesn't work:

routes.a.type = "Zend_Controller_Router_Route_Regex"
routes.a.route = "p-(.+)/(.+)"
routes.a.defaults.controller = "p-" + 1
routes.a.defaults.action = 2

Many thanks for your help.