Results 1 to 8 of 8
Thread: Domain Mapping Question
Hybrid View
-
10-15-2009, 07:13 AM #1Disabled
- Join Date
- Oct 2009
- Posts
- 28
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.
-
10-15-2009, 07:33 AM #2Newbie
- Join Date
- Oct 2009
- Posts
- 26
You can create domain2.com as a parked domain of domain1.com using cpanel.
-
10-15-2009, 07:40 AM #3Disabled
- Join Date
- Oct 2009
- Posts
- 28
A parked domain does not keep the domain name the same, it reverts to the name of the hosting account where the content is.
-
10-15-2009, 07:45 AM #4Web Hosting Evangelist
- Join Date
- Aug 2009
- Posts
- 477
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.
-
10-15-2009, 07:47 AM #5Disabled
- Join Date
- Oct 2009
- Posts
- 28
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.
-
10-15-2009, 07:52 AM #6******* Unleaded
- Join Date
- Feb 2004
- Posts
- 3,849
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
-
10-15-2009, 08:06 AM #7Web Hosting Evangelist
- Join Date
- Aug 2009
- Posts
- 477
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.
-
10-15-2009, 08:15 AM #8Disabled
- Join Date
- Oct 2009
- Posts
- 28
Can anyone offer a DNS based solution? Thanks.
Similar Threads
-
Domain mapping
By johntech in forum Hosting Security and TechnologyReplies: 3Last Post: 12-21-2007, 02:29 PM -
domain mapping
By Nature-Talk in forum Domain NamesReplies: 1Last Post: 10-03-2005, 11:46 PM -
Sub Domain & TLD Mapping
By webcoder in forum Hosting Security and TechnologyReplies: 0Last Post: 07-23-2004, 08:39 AM -
Mapping 1 domain to another.
By superfrog in forum Hosting Security and TechnologyReplies: 9Last Post: 02-06-2004, 06:42 AM -
Domain mapping
By Lewisham in forum Web HostingReplies: 6Last Post: 11-24-2000, 03:17 PM