redirecting subdomains
Posted by: mistermonty
Posted on: 2006-05-09 11:27:00
Hello,
I have setup my site so that every user has a page like this:
http://www.domain.com/userinfo.php?user=user1
http://www.domain.com/userinfo.php?user=user2
http://www.domain.com/userinfo.php?user=user3
Now i would like to give each user its own subdomain like this:
http://user1.domain.com
http://user2.domain.com
http://user3.domain.com
and so on ...
What is the best way to do this ? Do I need to manually make a subdomain for each user and redirect it to the userinfo php page? Or is there a better solution for this ?
Greetings
MM