Results 1 to 8 of 8

Hybrid View

  1. #1

    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.

  2. #2
    You can create domain2.com as a parked domain of domain1.com using cpanel.

  3. #3
    A parked domain does not keep the domain name the same, it reverts to the name of the hosting account where the content is.

  4. #4
    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.

  5. #5
    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.

  6. #6
    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

  7. #7
    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.

  8. #8
    Can anyone offer a DNS based solution? Thanks.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •