drj201 wrote:
I have a Zend Framework app and I want to mask domains to modules as
follows...

http://www.domain1.com => http://server/default
http://www.domain2.com => http://server/module2
http://www.domain3.com => http://server/module3

As mentioned my application uses ZF and a MVC architecture so all requests
are routed through http://server/index.php


I had a similar situation with just two domains. I use this in a bootstrap initSite()

       if( $_SERVER['HTTP_HOST'] == $options->frontsite &&
           $request->getModuleName() == 'default'){
           $request->setModuleName('frontsite');
       }

I would like for their to be a way with routers, but this works. Maybe someone else will have a better way.

Reply via email to