How to create an addon domain (and what’s the difference between addon and subdomain?)
When I first started using my hosting account and bought a second domain, I didn’t know if I should set it up as an addon domain or a subdomain.
Your cpanel will allow you to do both.
You will want to create an addon domain to add another (or a second, third, fourth etc…) domain to your hosting account. When you opened your hosting account, you had to specify your primary domain.
If you want to have more than one site, though, you will have to ‘add’ it ‘on’ to your hosting account.
A subdomain is when you don’t have a new subdomain, and yet want to treat it as if it is a new site. It will always have the format of: https://subdomain.myoriginalsite.com
So, suppose you have a site called www.coolpets.com
You could create a subdomain with dogs, and also one with cats. They would look like https://dogs.coolpets.com
If you do that, you will end up with three folders on your server… coolpets.com, dogs.coolpets.com and cats.coolpets.com
In effect each folder will have its own site files, (i.e. each folder will have its own wordpress files) and the server will treat each folder as if its a new domain.
Most of the time when you buy a new domain, though, you’ll set it up in your hosting account as an addon domain.
Here’s how to create an addon domain:
1. Go to your cpanel and look for ‘Addon domain’
Once you click Addon Domains, you’ll see this screen:
2. Fill in New Domain Name
Take the defaults for Subdomain and Document Root
Make sure to make a note of your password, even though its likely you’ll never need it.
Click Add Domain to finish. You’ll see this screen next:
Click ‘Go Back’ and you’re done.
Doing all of the above will make sure that your host knows about the new domain, and it will automatically create the right folder structure on the server. If you use your ftp client to log in to the server, you’ll be able to see a new folder in /public_html called: /public_html/mynewdomainname.com