Map subdomain to folder


#1

hi

i would like to map any subdomain to my site to a folder

like (.*).mysite.com --> /home/user/mysite.com/{$1}

so if I browse to:

support.mysite.com it will go to /home/user/mysite.com/support

or any other subdomain without having to specify every single one in dreamhost’s panel admin interface

thanks!
-Tim


#2

I know this has come up before, but an immediate search didn’t turn up results.

First off, you’ll need to get Support to add Wildcard DNS, but you’ll need a really good reason. [url]http://wiki.dreamhost.com/Wildcard_DNS[url] Upon reading this link, I see that you need to be a PS customer.

Beyond that, do some searches in the forums here, or maybe an htaccess guru will pop in.

-Scott