PHP code for add in new addon domain like cPanel
Posted: Tue Oct 28, 2008 1:45 am
I have a website using drupal. I want to be able to have users to use their own domain name. For example, my website is http://www.website.com/userA and if user go to usera.com it will be http://www.website.com/userA instead.
I see that in cPanel there is a feature call Addon Domain where I can setup redirection for a domain to point to a specific file or folder. How to program this in the backend using PHP? Or is this only something that host provider can do? Thanks.
I see that in cPanel there is a feature call Addon Domain where I can setup redirection for a domain to point to a specific file or folder. How to program this in the backend using PHP? Or is this only something that host provider can do? Thanks.