hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Domain Mapping Question
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Domain Mapping Question

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-15-2009, 07:13 AM
harrip01 harrip01 is offline
Newbie
 
Join Date: Oct 2009
Posts: 22

Domain Mapping Question


I have a client who has published his web site on our whm/cpanel server, lets say its at
site1.com.

He also has a number of additional domain names. He would like these domain
names to display the content of his web site, but without the URL changing in
the address bad. So, for example, a visitor could type domain2.com and see the
content from site1.com with the URL still displaying domain2.com

Can anyone advise how this is achieved? Thank you.

Reply With Quote


Sponsored Links
  #2  
Old 10-15-2009, 07:33 AM
Alistair Smith Alistair Smith is offline
Newbie
 
Join Date: Oct 2009
Posts: 26
You can create domain2.com as a parked domain of domain1.com using cpanel.

Reply With Quote
  #3  
Old 10-15-2009, 07:40 AM
harrip01 harrip01 is offline
Newbie
 
Join Date: Oct 2009
Posts: 22
A parked domain does not keep the domain name the same, it reverts to the name of the hosting account where the content is.

Reply With Quote
Sponsored Links
  #4  
Old 10-15-2009, 07:45 AM
Hosting24 Hosting24 is offline
Aspiring Evangelist
 
Join Date: Aug 2009
Posts: 445
Then you can simply use this solution:

Create index.php file on domain2.com and add this PHP code:

$content=file_get_contents("http://www.site1.com");
echo $content;

Pretty lame, but it should do the trick. You can also add some extra code to replace links from site1.com to domain2com as well

__________________
Hosting24.com Web Hosting - First class web hosting services.
Boxbilling - Complete billing, invoicing and client management system.

Reply With Quote
  #5  
Old 10-15-2009, 07:47 AM
harrip01 harrip01 is offline
Newbie
 
Join Date: Oct 2009
Posts: 22
Thanks for the suggestion. I was hoping for a solution that could be implemented through the DNS configuration rather than have to set up a number of hosting accounts just for one php page.

Reply With Quote
  #6  
Old 10-15-2009, 07:52 AM
plumsauce plumsauce is offline
******* Unleaded
 
Join Date: Feb 2004
Posts: 3,788
You don't have to. It's a question of knowing how to code it. Do you think domain parking companies create a separate anything for all those domains?

As long as you are using a scripting language, it can completely adapt to whatever hostname came in with the request. It's very spammy, but it does work.

__________________
edgedirector.com
managed dns global failover and load balance (gslb)
exactstate.com
uptime report for webhostingtalk.com

Reply With Quote
  #7  
Old 10-15-2009, 08:06 AM
Hosting24 Hosting24 is offline
Aspiring Evangelist
 
Join Date: Aug 2009
Posts: 445
It's not very spammy, but yes, it really works, and it provides more options.

__________________
Hosting24.com Web Hosting - First class web hosting services.
Boxbilling - Complete billing, invoicing and client management system.

Reply With Quote
  #8  
Old 10-15-2009, 08:15 AM
harrip01 harrip01 is offline
Newbie
 
Join Date: Oct 2009
Posts: 22
Can anyone offer a DNS based solution? Thanks.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain mapping johntech Hosting Security and Technology 3 12-21-2007 02:29 PM
domain mapping Nature-Talk Domain Names 1 10-03-2005 11:46 PM
Sub Domain & TLD Mapping webcoder Hosting Security and Technology 0 07-23-2004 08:39 AM
Mapping 1 domain to another. superfrog Hosting Security and Technology 9 02-06-2004 06:42 AM
Domain mapping Lewisham Web Hosting 6 11-24-2000 03:17 PM

Related posts from TheWhir.com
Title Type Date Posted
Today in Domains: Startups, Exact Match Keyword Domains and Facebook Typosquatters Blog 2013-05-01 16:35:20
ICANN Publishes Details on Domain Seizure Process Web Hosting News 2012-03-09 15:38:48
Operation In Our Sites Redux Blog 2011-11-30 20:49:34
Data Center Firm Switch Communications Sues Canadian Man Over Copyright Infringement Web Hosting News 2011-11-10 18:11:24
Web Host FlexiHost Launches NZ Domain Lookup and Registration App Web Hosting News 2011-08-31 20:38:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?