So I have a Zend project, let's say project1 and another Zend project inside the source folder of project1, let's say project2. Let the url of project1 be www.project1.com.
So when I access "www.project1.com/project2", it runs the default module, controller, action of project2. But if I do like "www.project1.com/project2/test/index/index", or access a route defined in project2 like "www.project1.com/project2/agb", the project1 application tries to map it on a route defined in project1 as "/:module/:controller/:action/:id/:page".
What I want to do is that if a url starts with "project1.com/project2", then no matter what, it should get to the project2 application. I can't use regex because ":module" is a variable, or at least I don't know how to do it.
Any help? Thanks