Switching to mod_php/cgi for subdomains?
Posted by: auxblood
Posted on: 2008-04-03 00:09:00
I have a "mobile".mydomain.com subdomain set up which requires the use of php's "auto_prepend_file" and "auto_append_file" directives to do some content manipulation. Unfortunately on Dreamhost, you can only use those two php functions if you run PHP as an Apache module and not as CGI.
Is there perhaps a way through a root-level .htaccess file to say something like (pardon the syntax):
if (request contains "mobile.mydomain.com") {
DefaultType application/x-httpd-php
AddHandler application/x-httpd-php .html .htm .php
}
Anyone? Bueller?