Home   |   TWP Auctions   |   Contact
The Website Professionals
Real world webmaster resources.
TWP Auctions - the free eBay script RSS feed Twitter

Park a domain on a cPanel addon domain

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]

Leave a comment

This is a dofollow website. If you leave a comment, then we'll give you a backlink.
Please be aware that this website is strictly moderated. If you post spam, you'll get a slap.










Featured webmaster products for February 2012:
Use a different photo for every card

Copyright © 2012 The Website Professionals - All rights reserved
Links | Privacy policy