Map subdomain to folder


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

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

so if I browse to: it will go to /home/user/

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


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][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.