Post Pin

How to Host Multiple Domains in One Web Host

  Get Updates by Email or by RSS feed
WWW's Image via Wikipedia

So you want to create multiple websites, you have one shared web hosting plan and dozens of domains? In other words, how do you host multiple domains in one web host? Normally, what people do is they buy one web host for each domain which is clearly very expensive! So, now I am going to teach you how to be cheap (lolz) and just use one web host for multiple domains.

First, I would like to say that this is not always a good idea. It is good financially but if you expect a lot of traffic from each of your domains then don’t do this. Either get a dedicated hosting server for your domains or get a shared hosting for each. But if you expect minimal traffic, you could do this technique.

To begin with, I assume you already know and have the following:

  • Shared Web Hosting Plan
  • Multiple Domain (at least 2)
  • Knowledge of FTP or you know how to access your files via the CPANEL

Ok let us be quick and thorough. Here are the instructions:

  1. Go to your CPANEL and click file manager.
  2. Go to your root folder (www folder).
  3. If you have say 2 domains, create 2 subfolders for each domain. That means you would have subfolder for site1 and for site 2.
  4. Open the .htaccess file in edit mode. If you have none, create one.
  5. Enter the following code below:
  6. RewriteEngine On
    RewriteCond %{HTTP_HOST} site1.com$ [NC]
    RewriteCond %{REQUEST_URI} !^/site1/.*$
    RewriteRule ^(.*)$ /site1/$1 [L]

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

And that’s it! If you are using wordpress, just point your site to your domain name and not the subfolder. When you enter “www.site1.com” in your address bar, it should get redirected to your subfolder but URL would still be “www.site1.com” and not “www.site1.com/site1″.

Let me know if you have any questions.

Reblog this post [with Zemanta]

Make sure to check out the site for more related information about How to Host Multiple Domains in One Web Host .

__ 

Related Posts

Related Websites

  • enzogames
    It would be nice if you could use multiple domain and one wordpress account, type in site1.com you content for site1, type in site2.com and get site2 content. I guess I just dreaming.
  • I don't quite get what you mean. Could you please elaborate?
  • Hi,

    You can find more information on hosting multiple domains on a single web hosting account from: http://www.hostingmultipledomainnames.com
blog comments powered by Disqus