More Info »
How to add more domains to one hosting account
Depending of your web hosting account features, one, two, or more additional domains can be added to the one hosting account. Domain names are cheap today, web site hosting also, and there is strong competition there. Allowing more domains on one account, web hosting company tactic is simple. More domains = more sites = more traffic = more bandwidth = upgrade account, please ;-)
Add-on domain is the same as "main" domain. What means, although it is pointing to subdirectory of your main hosting account, visitor cannot see your directory, only domain name.
In case that you don't have an option to register new domain (web hosting company do not support new domain
registration from your hosting account), you need to use some accredited registrar.
Add new domain to existing hosting account, Bluehost cpanel example
If new domain name is registered at registrar, now, add it to your hosting account.
Log to hosting account control panel, choose "domains".
There is little difference from one to other hosting company, depending of kind of control panel also, but procedure is the same. Anyway, new domain is now pointing to subdirectory of main site, but acting like separate site.
Now, you have a addondomain.com pointing to "maindomain.com/addondomain" Actually, that is subdomain of your main domain, the same new site you can reach using addondomain.maindomain.com, maindomain.com/addondomain and addondomain.com
For further details (enabling cgi, separate ftp for that domain, email),
Do not link or submit "maindomain.com/addondomain", or "addondomain.main.com" anywhere. Use "www.addondomain.com" only, to avoid duplicate content. With 301 (permanent) redirect, using htaccess, any visitor or spider reaching directory or subdomain, will be redirected to the addondomain.com
Although this below is not neccessary, you can use htaccess and mod_rewrite to redirect all requests for maindomain.com/adddomain and addondomain.maindomain.com to addondomain.com
In this case, htaccess must be uploaded in addondomain directory i.e. maindomain.com/addondomain
"Translated", it says: if request is NOT www.addondomain.com, redirect it to www.addondomain.com.