keeps21 Posted June 4, 2009 Share Posted June 4, 2009 I have a couple of domains and one hosting account. What I want to do is to direct people who go to: http://site-one.com to be directed to the folder containing the files/website for site one and to direct people who go to: http://site-two.com to be directed to the folder containing the files/website for site two What is the best way to do this? Link to comment https://forums.phpfreaks.com/topic/160929-multiple-domains-under-1-hosting-account/ Share on other sites More sharing options...
Daniel0 Posted June 4, 2009 Share Posted June 4, 2009 Setup an A record for each of the domains to point to the server's IP address, and then setup a vhost on that server for each of the domains. Link to comment https://forums.phpfreaks.com/topic/160929-multiple-domains-under-1-hosting-account/#findComment-849313 Share on other sites More sharing options...
The Little Guy Posted June 4, 2009 Share Posted June 4, 2009 wouldn't this work? header("Location: /files/website"); exit; Link to comment https://forums.phpfreaks.com/topic/160929-multiple-domains-under-1-hosting-account/#findComment-849485 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.