I am trying to setup a subdomain on a server of mine, where blog.domain.com
serves the content from domain.com/blog/
Perhaps this is the wrong way of doing this entirely, but I have setup a blog.domain.com
VirtualHost
for this, whose DocumentRoot
is /path-to-domain.com-root/blog/
. However, it seems that the .htaccess file from the original DocumentRoot
(i.e. /path-to-domain.com-root/.htaccess
) is still being applied even under the new subdomain's VirtualHost
.
So, I'm wondering, does Apache look at .htaccess files, even if they're above the DocumentRoot
— if so, how can I stop it from doing this (it's rewriting the URL and sending it to somewhere that I don't want it to go)? Or if there's a better way of doing this, I accept that I might be being a complete idiot and doing it totally wrong :)
Thanks