Web Hosting Talk







View Full Version : Help pointing a domain name to a specific directory


Andyc
06-14-2002, 10:06 PM
I have a customer who has their main domain on their account and then a second domain that they want to go to a directory within their account. They do not want it forwarded but want it to show as the domain when someone visits the site. Such as

www.whatever.com instead of it being redirected to

www.maindomain.com/whatever

I know there is a way to do this with Cpanel/WHM but I am not sure how. Can anyone enlighten me?

Thanks,
Andrew

LinuXpert
06-14-2002, 10:40 PM
First you create a subsomain account whatever.maindomain.com in WHM then you park whatever.com on whatever.maindomain.com

LinuXpert
06-14-2002, 10:48 PM
Ah because you want whatever.com to go to sub-directory whatever in the maindomain.com account you need to change DocumentRoot (in the httpd.conf) of whatever.maindomain.com to the path of this sub-directory.