Pointing a parked domain to an existing add-on domain

It's not likely to come up very often, but you may have a situation where you have an add-on domain set up on your hosting account, and you want to have a second domain point to it.  This is normally not something you'd be able to do in cPanel, as you can't have two add-on domains using the same directory.  However, you can make it happen by adding a few lines to your .htaccess file.

First, you'd need to PARK the new domain that you wish to point to the add-on.  You'd do this in cPanel under Parked Domains.  Then, add the following lines to a file called .htaccess in your public_html directory (if there isn't one there already, create a new one):

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/addon_directory/
RewriteCond %{HTTP_HOST} ^parkeddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.parkeddomain.com$
RewriteRule ^(.*)$ addon_directory/$1 [L]

In this example, "addon_directory" is the name of the directory used by the original add-on domain, and "parkeddomain.com" is the new domain you want to point to the add-on.

  • Email, SSL
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

DNS - Name Server Settings

How can I get Total Server Solutions DNS information? Listed below are the name servers you...

What is the IPS Tag for TSS Domains?

How do I change the IPS / ISP tag of my UK domain name. IPS / ISP tag only applies to UK Domains...

What is a Redemption Grace Period (RGP)?

TSS Domains are generally allowed a grace period of up to 29 days after the domain name expires...

How can I transfer my domain to a different registrar?

The process of transferring your domain from TSS to another registrar should be fairly simple....

How do I point a domain to TSS's name servers?

I have hosting here now and have my site set up on your servers. How do I point the domain name...