I have a further question regarding this technique I hope you don't mind my asking here...
I have a case where I run a number of websites, that all have a common structure. I use subdomains for different site areas, like support.domain.com and sales.domain.com or whatever.
I want to be able to use the SAME htaccess rule for every site, without having to manually go in and add "domain.com" to every htaccess file on every site.
So I would like some way to not only virtually map the subdomain to a corresponding directory, but also to have it automatically know what the domain it's on is, so I never have to hard-code it.
Can this be done? Try as I might I just can't wrap my head around regex and htaccess yet...
Thanks!