I recently tried to park a domain name on a cPanel addon domain - which seemed like a good idea until I found out that not only was it impossible, but it also left a rogue ‘hidden’ DNS entry somewhere in my reseller account. I eventually worked out how to do it using htaccess.

This method will 301 your empty “parked” domain, to another addon domain - so parked.com/whatever will 301 to www.domain.com/whatever.

  • Create a normal addon domain using cPanel e.g domain.com, and upload your content
  • Add the domain you want to park as an additional addon domain e.g parked.com
  • Drop the following htaccess file in the ‘parked’ domain directory

RewriteEngine on
RewriteCond %{HTTP_HOST} ^parked.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.parked.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]