Domain Names

ID #109

Can I host multiple domains on one account?

Applies to: Grid System

Yes, using our Domain Alias service.

A Domain Alias allows additional domain names to all lead to same account. There are several ways you can use this service:

Multiple Domains, One Website

For example, if you are hosting your domain name "" with us and added a Domain Alias for "", then and would take a visitor to the exact same pages of your website. would bring someone to the exact same page as

Multiple Domains, Multiple Websites

Using this method, you can host an additional website within your account for each Domain Alias you add. This is a custom configuration requiring a couple extra steps.

After adding the Domain Alias in OnSite, then place an .htaccess file in /htdocs/www of the following example format:

  RewriteEngine On
  RewriteCond %{HTTP_HOST}$ [NC]
  RewriteCond %{REQUEST_URI} !^/alias/.*$
  RewriteRule ^(.*)$  /alias/$1

Then, upload your HTML files to /htdocs/www/ and your HTML files for to /htdocs/www/alias

Other options for domain alias handling may be found in the User-Contributed Notes below.

Domain Alias Email Handling

Email sent to anything will be delivered to In other words, all mail for is treated as if it was actually addressed to This lets you manage email for both domains at once in OnSite. This means you cannot have mail addressed to be delivered differently than mail addressed to

Domain Alias DNS

You can manage DNS records for your domain aliases separately, within OnSite, using the dropdown menu at the top of the Manage DNS page.

Adding Domain Aliases

You can add domain aliases in OnSite You can add as many domain aliases as you like. Depending on your hosting plan, they will be free, or $1/month each.

Last update: 2010-09-29 16:52
Author: FAQ Admin
Revision: 1.2

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 4.4 (15 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:
Domain Alias are $1 per month per domain.
Added at: 2002-07-09 09:23

Comment of Anonymous:
If you want a Domain Alias to redirect and put the correct hostname in the URL bar of the browser, you can use mod_rewrite. If you are hosting and have a domain alias of and you want all requests for urls to be redirected back to urls, then you would put this in an .htaccess file in any directory where you want this redirection to happen:

RewriteEngine on
RewriteCond %{HTTP_HOST}$ [NC]
RewriteRule ^(.*)$$1 [R]

The rule will affect all directories below the one where you put this .htaccess file. So a request for will be redirected to as well.
Added at: 2002-10-04 14:17

Comment of Anonymous:
If you want a Domain Alias to serve pages only from a certain subdirectory, you can use this mod_rewrite rule in an .htaccess file in your /htdocs/www directory of your primary hosting account:

RewriteEngine on
RewriteCond %{HTTP_HOST}$ [NC]
RewriteCond %{REQUEST_URI} !^/subdir/.*$
RewriteRule ^(.*)$$1 [R]

Then when requests for the aliased domain come in, the browser will be redirected to find files in the subdirectory, while still keeping the domain name of the domain alias in the browser address bar. Files for the domain alias in the above example would be served from /htdocs/www/subdir/
Added at: 2002-10-07 17:29

Comment of Anonymous:
If you have a Domain Alias that you'd like to point to a specific directory of your orginal domain, and you'd like to maintain the domain name of the Domain Alias in your URL, use the suggested mod_rewrite rule in the technote posted above (dated 10/07/2002).

Replace line 4 of that rule with the following:

RewriteRule ^(.*)$$1 [R]

Added at: 2002-10-21 12:18

Comment of Anonymous:
If is your original domain and is the domain alias, and you want people going to to see one site and people going to to see a different site, and you want the hostname to stay as the user typed it, make a directory called xyz under /htdocs/www and put the website in it. Then use mod_rewrite in an .htaccess file in /htdocs/www

RewriteEngine On
RewriteCond %{HTTP_HOST}$ [NC]
RewriteCond %{REQUEST_URI} !^/xyz/.*$
RewriteRule ^(.*)$ /xyz/$1

Now when people go to they will see the site in /htdocs/www. When people go to, they will be served pages from /htdocs/www/xyz and the URL in their browser will not change the hostname or show them the /xyz/.
Added at: 2003-05-24 01:47

Comment of Anonymous:
If you are hosting a Drupal site in one of your subdirectories, and accessing different URLs on that site results in Internal Server Errors, then you may try setting $base_url in settings.php to a null string to fix it.
Added at: 2010-09-13 13:42