Oct 26, 2018

DIFFERENCE BETWEEN A PARKED DOMAIN AND AN ADD-ON DOMAIN

Parked Domain
  • You have two domains mysite.com and my-other-site.com.
  • mysite.com is the domain of your website and you want to add my-other-site.com.
  • You want them both to go to the same place. In other words, when someone types either www.mysite.com or www.my-other-site.com they will go to the same page(s) on your website.
Add-On Domains
  • You have two domains mysite.com and my-other-site.com.
  • You want the two domains to be totally separate/independent websites.
  • For one account, multiple domains, if mysite.com is your main domain. my-other-site.com can be setup on public_html/marrycomhomefolder or any other folder name. While setting up an Addon domain, you can specify the folder name, folder location. If user visits mysite.com/my-other-site-folder directly then it will show the same site too. We can use .htaccess file to allow only my-other-site to visit its folder.
edit .htaccess file in your my-other-site-root-folder
RewriteEngine On
RewriteCond %{HTTP_HOST} !=my-other-site.com
RewriteRule ^admin/.*$ - [F]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]