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.

  • 7 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Can Velebit Host host my existing foreign domain?

Yes, just as we can host any new foreign domains, we can also host any existing foreign domains...

DNS - Name Server Settings

How can I get Velebit Host DNS information? Listed below are the name servers you should use for...

How can I transfer my domain name to Velebit Host?

VelebitHost Domains is a separate website that is owned by Velebithost to deal directly with...

How do I flush DNS information?

Sometimes a bad DNS entry will be cached and you will need to either flush the DNS cache to get...

How do I get an EPP Code to transfer a domain?

If you are wishing to transfer your domain name registration FROM Velebit Host TO another company...

Powered by WHMCompleteSolution