Can I Have More Than One Domain Point To My Existing Site?

YES! We can added another domain name to your website as an alias.  Then when you bring up the aliased domain in your browser it will show the same content as your primary domain.  Because the alias also has to be added to the DNS you need to open a support ticket with the list of domain aliases that you want to add.

After adding the aliases you can setup redirects for those aliases.  To setup redirects you need to create a file name ".htaccess" in your httpdocs directory.  Then copy and paste the redirect examples below and edit the names and directories to redirect them to where you want.

Redirect to Primary Domain:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?primarydomain\.com$ [NC]
RewriteRule ^(.*) http://www.primarydomain.com/$1?domain=%{HTTP_HOST} [R=301,L]

This will redirect all aliases to your primary domain name. You replace the "www.primarydomain.com" with your domain name.

Redirect to Subdirectory:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain\.com$ [NC]
RewriteRule !^subdir/ /subdir%{REQUEST_URI} [L,NC]

You have to replace "yourdomain.com" with your domain name and "subdir" with your subdirectory

Last Updated on 23 Apr, 2014 - 0 Views