Parking a domain on top of an addon domain in cPanel can be a quick, easy way to change the domain on a site without mussing with files or database connections and the like. If you’re using a database-driven site, however, be sure to make the relevant changes to the database. ((Thanks to Hostgator Support for this helpful info.))
- Login to cPanel and click Addon Domains–and not parked domains.
- In the field to the right of “New Domain Name,” type the domain name you wish to park on top of your addon domain
- Click outside the text box and your other settings will populate.
- Under “Document Root:” remove everything except “public_html”
- Look down to your current addon domain and its “Document Root” – normally a folder named after the original domain.
- Take the “Document Root” and insert it in the field to the right of “Document Root:” at the top.
- Insert any password in the password field. (You won’t need to remember this password, so just use the Generate Password button.)
- Click Add Domain