views:

100

answers:

0

Hey there,

I've been using the Zend Framework to map subdomain requests to a module in my main MVC application but now I need to change the virtual host config back and use a htaccess file instead. Previously all I needed to do in the virtual host config was to set the subdomain DocumentRoot to be the document root of the main application and the front controller / routes would take care of any subdomain requests.

Now I would like to use a htaccess file in the subdomain to do the same thing but obviously DocumentRoot isn't allowed in htaccess files so can anyone think of another method or workaround that would work with the mod_rewrite nature of the application and the mapping of the url to module/controller/action etc?

Cheers