Because I need to use a seperate apache subdomain for some other script, I have added a subdomain to the website I run.
Because this subdomain has his own directory-root I have a problem at the moment.
So I have domain.com and subdomain.domain.com in the same folder where each directory is the directoy for it's domain.
I was figuring out the following in .htaccess on both rootdirs, but this doesn't seem to work:
RewriteCond %{HTTP_HOST} subdomain.maindomain.com
RewriteCond %{REQUEST_URI} !subdomain/
RewriteRule ^(.*)$ subdomain/$1 [L]
Should it be possible this way ? Because loading the config for that subdomain earlier than the domainname does not make any difference.