I have an old account on with a provider that gives me the opportunity to redirect non-www requests to their www counterparts (without doing it with .htaccess files). I want to mimic that option.
Lets take "domain.com" as an example.
(This is what I want to happen, not how it works right now)
domain.com redirects to
www.domain.com but reads from /domain.com (same as domain.com would without the re-direct).
subdomain.domain.com reads from /subdomain.domain.com
I don't want to set up VirtualHosts for every single domain/subdomain, but I'm starting to think this is the only way. A lot of examples uses VirtualDocumentRoot /%0- and that would work for the subdomains but not domain.com as it would result in apache looking for /www.domain.com
Is what I'm trying to do possible or am I just trying to be much too dynamic for no good reason?