Hi,
This is probably a complete newbie question, of which I apologize for
in advance! :-)
I'd like to set up some virtual domains on my site that have the
format: username.domain.com. Whenever I've seen this done before (on
hosting accounts I've had, for example) it creates a new folder for the
document root, etc. However, all I want it to do is rewrite the domain
so it just goes to something like
www.domain.com/index.php?user=username.
I'd imagine a rewrite rule could be put in the htaccess file to to
check for the username and rewrite the url. But would I have to put a
<VirtualHost> entry in the vhosts.conf file for every username added?
Would I have to update anything else for this to work? I'd like to do
it via programming, if possible (eg, someone signs up to my site and
gets their username added automatically). The programming part is not
a problem (and besides, this is the wrong group for that!) so long as I
know what what I need to be updating.
Many thanks to anyone who can give any advice and !
Andy