The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatically handle new domain to interact with database?

Discussion in 'General Discussion' started by dannyb785, Oct 22, 2012.

  1. dannyb785

    dannyb785 Registered

    Joined:
    Oct 22, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi all, I am along-time php/mysql programmer but I have a new challenge with a website I'm developing.

    It's the kind of site where you have a username and your custom site would be at http://username.mainwebsite.com or mainwebsite.com/username. However, I need the ability so that if someone buys their-domain.com and edits the nameservers to point to my server, that I can somehow make it so requests at their-domain.com will show the website located at username.mainwebsite.com. I know about htaccess and whatnot, but I have no idea where to even start. Any guidance would be greatly appreciated.
     
Loading...

Share This Page