When I'm setting up a new website for a client with an existing website, I will commonly want to point a temporary URL to the new website for use during development and testing. For example, I might use something like http://newclient.wenderhost.com to point to an account that I setup as http://newclient.com. This is commonly known as an account alias or a temporary domain. If you're using a WHM/cPanel server, setting up an account alias is easy:
- If you haven't already, be sure to start by creating an account in WHM for your client's domain. We'll use http://newclient.com as our example.
- Login to the cPanel for a domain whose DNS already resolves to your WHM server. The most logical choice would be your reseller domain. In my case, I would login to the cPanel for http://wenderhost.com.
- Create a subdomain for your client's site from the cPanel you accessed in step two.
- Login to your WHM control panel. Choose DNS Functions > Park a Domain. Select your client's domain for the "Domain to park on top of." Type in the subdomain you created in step three as the "Domain to park." Click "Submit" and now you have a temporary domain that points to the new account.


Thanks so much Michael. I'm new to WHM and these instructions just made my life so much easier.
Michael,
thanks for this info. very hard to find. i was having a hard time using root relative links with the usual ~username url. Hopefull this will work and give me a bonified root testing site.
Thanks
In regard to setting up the sub domain in cPanel, what do you put for Doc root, just whatever it generates? Or does it matter?
Thanks