How to Host Multiple Domains under the Same Host Account

If you have a hosting account, such as Go Daddy, and want to set up multiple websites under the single account, then this article is for you.

The examples in this post will use Go Daddy as the host account and WordPress as the platform the website will be created on. However the logic will apply for various platforms.

Please note that if you are setting up 1 domain under 1 host only, these instructions are not for you. These instructions are for people who want to set up 2 or more domains under the one host creating multiple websites.

First Step

You will need a web host that allows you to set up multiple databases (specifically SQL databases). If your web host only allows 1 database, then these instructions will not work.

The web host I use is the Deluxe package from Go Daddy. This package gives you the unlimited websites feature with 25 databases. Therefore I can create 25 different websites with unique domains. You also get unlimited space and bandwidth with this package which is pretty good when you are running multiple websites.

Second Step

Buy a new domain name for your new website if you have not done so already. You can also use your existing domains to create extra websites (e.g., if you own mysite.com, then you can create as many prefix domains as you want, such as welcometo.mysite.com or more.mysite.com. Instructions on how to do this can be found here).

I find it easier to have all of my domains under the same company, in this case Go Daddy as I host my websites there. It just simplifies things that way.

Third Step

Create a folder for all your websites in your web host File Manager. I place all of my websites in a folder named “_sites” and then create a subfolder with the name of the website.

Go Daddy example:

  1. Launch your webhost by going into your account and clicking on Manage. Then select the product you want to have your websites under and click Manage.Go Daddy Web Host Selection
  2. Click on File Manager which is located under Tools.Go Daddy Host Tools Menu
  3. While you have the folder webroot selected, click on New then New folder.Go Daddy New Folder
  4. Give the folder a name. I use _sites. While that new folder is selected create another folder within it (subfolder) with the name of the domain of the website you want to create.

Subfolders with domains

 

Fourth Step

Go back to your host dashboard and find the place where your hosted domains are under.

Go Daddy example:

  1. To go back to your dashboard click on Home that is on the top left corner of the page.
  2. Under Settings click on Hosted Domains.Go Daddy Settings

Fifth Step

Add the domain you want your website to be set up under within your web host.

Go Daddy example:

  1. Click on Add Domain under Hosted Domains (can be found to the right of the page).
  2. Enter the domain details and choose the folder you created in the third step of theses instructions (I am using domain.com as an example, replace this with your actual domain and choose the relevant folder).06
  3. Your new domain will now appear in your list with “pending“. This will then change to “Setup” within the hour. It usually only takes a few minutes for me.07

Sixth Step

When your web host accepts the domain you can now start building the website within your domain folder (in File Manager). If you are going to create a website from scratch, then you will not need to create a separate database. However if you want to use platforms such as WordPress, Drupal, Joomla, etc. the you will need to create a separate database for each website to avoid conflicts between them.

Below are instructions on how to set up WordPress under your new domain using a new database.

Setting up WordPress under your additional domains (using Go Daddy as the web host example)

  1. Download WordPress through wordpress.org and extract the files on your computer.
  2. Upload the extracted files into your domain’s folder under your web host’s File Manager (e.g., /_sites/domain).
  3. Set up a new SQL Database within your web host. This is so that all domains have their own hostname.
    1. In Go Daddy you can set up a new database by going to your web host Dashboard and click on Databases >MySQL (top of the page on the green bar).
    2. Click on Add and enter your domain’s details. I generally use my domain’s name as the database name and username and friendly name. Note that the database name and username needs to be unique. Domains are generally unique too, so usually there are no issues using your domain name.
      Choose a password you will remember the press OK.08
    3. You will get a message that says the database is being set up and it will appear on your list shortly. When the database appears click on “Actions” and the “Details“.
    4. Copy the string of letters and number under Hostname.09
  4. Assuming you have the WordPress files in your File Manager folder under your domain name, write in your domain in your browser URL bar to access it. WordPress will prompt you to set their config file. First choose your language. Wordpress will then show you the following screen letting you know what you need to set up and that you will be creating the config file. Click on “Let’s go!”
    Word press setup1
  5. Enter the details of your domain. Add your database name (this is the unique database name and username you chose when creating the database, in my example it was Domain). Add the database username (should be the same as database name) and the password you chose.
    This next part is important. Replace localhost with the database hostname you copied after creating the database. You should be able to just paste it in. Leave everything else as is and press Submit.You may want to play around with WordPress’ new Table Prefix function where you can create multiple installations using one database. At this point I do not know how to use it, so best to leave it as is if you also do not know how to use it.
    wordpress setup2
  6. If all goes well you will be presented with this message. Click on Run the install and follow the prompts.wordpress setup3
  7. After the installation you can now access your domain in your browser. To go to the wordpress dashboard, write in your domain in your browser and add “/wp-admin” after .com or whatever domain extension you have.

 

And there you have it. Repeat for any other domains that you may have to create separate websites under the same host.

If you have any questions regarding the steps, feel free to leave a comment and I will answer as best I can. However if they are questions regarding a specific web host or website creation platform, then I may not be able to help unless it is Go Daddy and WordPress which are the ones I am familiar with.

facebooktwittergoogle_plusredditpinteresttumblr

Leave a Reply

Your email address will not be published. Required fields are marked *