Last updated:
cPanel’s Domains page is used to manage addon domains, subdomains and aliases. The interface has replaced the separate Addon Domains, Subdomains and Parked Domains sections.
Most users find the interface somewhat confusing, as it is not immediately clear what type of domains are listed on the page. In this article I first explain the difference between the type of domains, and I then explain how to create different types of domains.
On a brand new cPanel account you should see just one domain. That domain is the “main”, or “primary” domain. This domain can’t be removed.
The Domain page on a newly created cPanel account.
The table with information about domains has five columns:
Next, let’s briefly look at how to create different types of domains.
An alias is a domain that shows the content of another domain. For instance, my main domain is example.com, and perhaps I also own the domain example.net. If I want example.net to show the same content as example.com then I can add it as an alias. This type of domain is also known as a “parked domain”.
Whether or not you can create an alias depends on your hosting plan. Most of our shared hosting plans don’t include aliases, but they can be added as an addon product.
To add an alias domain, start by clicking the Create A New Domain button. You should then see this form:
The Domain field is self-explanatory; this is where you enter the domain you want to add. The only thing to be aware of is that you should not enter the protocol (i.e. https://) and the www subdomain.
Next up is the Document Root field. This is a common source of confusion. By default, the Share document root checkbox is ticked. With that option, the new domain uses the same website directory as the main domain. In other words, the main domain and the new domain would show the same content. So, with the box checked cPanel creates an alias, which is the option we want.
After adding the domain you are returned to the main Domains page, which now shows two domains:
The main thing to note is that example.com and example.net share the same document root. So, they are one and the same website, but they use different domains. And we also know that example.com is the main domain. That tells us that example.net is an alias of example.com (and not the other way round).
When you create an alias you often also want to add a redirect, so that the alias redirects to the main domain. My article about aliases in cPanel talks about that in more detail.
Next, let’s add an addon domain. You use this option if you to want to manage multiple domains via you cPanel account. Whether or not you can host multiple domains again depends on the hosting plan. For instance, our “Power” plan allows one additional domain, while the “Power Extra” plan lets you host up to 10 domains. You can compare the hosting plans on our Web Hosting page.
To create an addon domain you enter the domain and untick the Share document root option. That is because the addon domain should be independent from the main website. It therefore needs its own document root.
When you untick the box the form asks you what subdomain should be created. This is another source of confusion. You are creating an addon domain, so why would you want a subdomain? The reason has to do with the odd way in which cPanel creates addon domains. In the background, it creates a subdomain and it then adds an alias.
To illustrate, the above image shows that I am adding foo.bar as an addon domain. When I unticked Share document root, cPanel automatically offered to create the subdomain foo.bar.example.com. When I click Submit cPanel quietly creates the alias foo.bar for the domain foo.bar.example.com.
The Domain page doesn’t list the subdomain and alias. Instead, it simply lists the addon domain. You can tell it is an addon domain because the domain foo.bar has its own document root (public_html/foo.bar).
A subdomain is an independent section of a domain. For instance, you want to host a git repository for your domain then you can create a subdomain such as git.example.com.
Like addon domains, subdomains have their own document root. When you create a subdomain the Share document root is therefore automatically unticked. Cpanel also automatically suggests a location for the document root.
And there we have it: the subdomain has been created:
As mentioned, the Domains page doesn’t show if a domain is an addon domain, alias or subdomain. However, you can tell what types of domains are listed on the page by looking at the document root and the domain name itself: