var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Domain Mapping Question
I have a client who has published his web site on our whm/cpanel server, lets say its at
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.
You can create domain2.com as a parked domain of domain1.com using cpanel.
A parked domain does not keep the domain name the same, it reverts to the name of the hosting account where the content is.
Then you can simply use this solution:
Create index.php file on domain2.com and add this PHP code:
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
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.
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.
It's not very spammy, but yes, it really works, and it provides more options.
Can anyone offer a DNS based solution? Thanks.
By johntech in forum Hosting Security and Technology
Last Post: 12-21-2007, 02:29 PM
By Nature-Talk in forum Domain Names
Last Post: 10-03-2005, 11:46 PM
By webcoder in forum Hosting Security and Technology
Last Post: 07-23-2004, 08:39 AM
By superfrog in forum Hosting Security and Technology
Last Post: 02-06-2004, 06:42 AM
By Lewisham in forum Web Hosting
Last Post: 11-24-2000, 03:17 PM