How to Add a Domain in cPanel: Addon Domain vs Alias vs Subdomain (Step-by-Step)

How to add a domain in cPanel

Adding a domain in cPanel usually falls into one of three practical scenarios: you add a new standalone website as an Addon Domain, you attach a second name to the same website as an Alias (Parked Domain/Domain Alias), or you create a Subdomain. The difference matters. An Addon Domain typically has its own document root and can host a separate site, an Alias points to the same content as another domain, and a Subdomain is a structured section like shop.example.com. Choosing the right type first prevents common headaches such as “wrong folder”, duplicate content, SSL warnings, and the classic “the domain doesn’t open” situation.

Before you start, make sure you can log in to cPanel, and that you control the domain’s DNS. If you still need to register a domain, use Domain Registration. If you need a hosting plan that includes cPanel, see Hosting. And for HTTPS from day one, review SSL Certificates.

1) Decide what you are adding: Addon, Alias, or Subdomain

If you are building a separate website with different content (for example, brand.com and product.com), you almost always want an Addon Domain. If you want two domains to show the same site (brand.com and brand.net), use an Alias. If you want a separate section under the same brand (store.brand.com), use a Subdomain. Make this decision first because it determines your folder structure, your redirects, and how SSL is issued.

2) Check account limits and existing domains

Some hosting plans limit how many domains you can add. In cPanel, you typically see this in the “Domains” area. If “Create A New Domain” is missing or you see a limit warning, you may need to upgrade your plan or use an Alias instead. Also, if the domain already exists in your account (as an alias or subdomain), cPanel may throw an error when you try to add it again.

3) Add the domain in the “Domains” interface

In modern cPanel versions, domain management is consolidated under “Domains”. Open cPanel, find “Domains”, and click “Create A New Domain”. Enter your domain name (for example, mydomain.com). cPanel will suggest a document root like /public_html/mydomain.com/ or a similar folder. This is a critical step: the document root is the directory the web server uses to serve the site.

If you want this domain to show an existing site, set the document root to the same directory as your primary domain (often /public_html). If you want a separate site, keep the suggested separate folder or choose your own dedicated folder. A good operational habit is one domain = one clearly named folder, which reduces the chance of mixing files, configs, or CMS installations across sites.

4) Understand “share document root” and aliases

Depending on your cPanel version, you may see an option like “Share document root”. Turning it on means the new domain will point to the same content as another domain—effectively behaving like an Alias. Leaving it off creates a separate folder and a separate site. You can change this later, but it often involves moving files and validating paths, so it is best to choose correctly the first time.

5) Point DNS to your hosting

Adding the domain in cPanel only configures the server. You still need DNS to route visitors to the correct IP. You typically have two approaches: delegate the domain to the hosting DNS nameservers (NS) or keep DNS at your current provider and set an A record pointing to your server’s IP address. Nameserver delegation is often simpler because the DNS zone and web hosting live in one place. If you use an A record, double-check you are using the correct IP (especially if you have a dedicated IP for SSL or mail).

DNS propagation takes time. In practice, it can be minutes to 24–48 hours depending on TTL values and caching. If the domain still shows the old website, it usually means DNS has not fully updated. Verify the A record or nameservers from an external DNS check, and do not confuse “cPanel is ready” with “the public internet already sees it”.

6) Verify the site is served from the correct folder

Once DNS points correctly, open the domain in a browser. If you see a cPanel default page or a blank directory listing, the web server is working but the document root folder does not contain your website files. Upload a simple index.html to test, or deploy your CMS/application to that directory. If you see the wrong website, the domain is probably pointing to the wrong document root or was added as a shared-root alias.

This matters even more when one cPanel account hosts many domains. A single wrong document root can “overlay” content and cause confusing cross-site behavior. Keep folder names consistent and avoid reusing the same directory unless you intentionally want an alias. For staging or development environments, use subdomains with separate directories to keep boundaries clear.

7) Enable SSL after adding the domain

After the domain exists in cPanel and DNS points to the server, you can enable HTTPS. Many hosting setups support AutoSSL, which issues certificates automatically. If you see an SSL warning, it usually means DNS is not pointing correctly yet or AutoSSL hasn’t run. Check “SSL/TLS Status” and run AutoSSL if available, or install your certificate manually.

If you use both www and non-www, choose one as your preferred version and set a 301 redirect so the site has a single canonical URL. This prevents duplicate content issues and reduces “mixed content” problems where some resources still load over HTTP. Correct redirects also improve user trust and make analytics cleaner.

8) Common errors and quick fixes

“Domain already exists” usually means the domain is already present in your account as an alias, subdomain, or it exists under another account on the same server. “This domain is not pointing to the server” is almost always DNS-related—verify A records and nameservers. 404 errors usually indicate the wrong document root or a missing index file. SSL errors typically disappear once DNS is correct and AutoSSL is re-run.

If you are migrating a site, adding the domain is only step one. You still need to transfer files, import the database, update configuration files (like wp-config.php), and recreate email accounts if mail is hosted there. A safe workflow is to upload the site first, test with a temporary URL or a hosts file override, and only then switch DNS—reducing risk and downtime.

Post-setup checklist

After you add a domain, use a short checklist: (1) the domain appears in cPanel “Domains” and the document root is correct, (2) DNS points to the correct server, (3) the right website opens in a browser, (4) SSL is active with no warnings, (5) www/non-www redirects are consistent, (6) if email is involved, MX records and mailboxes are correct, and (7) backups are in place. This takes minutes but prevents hours of troubleshooting later.

For simple websites, a managed hosting plan is usually the easiest path. For more control, automation, and custom stacks, a VPS can be a better fit. Either way, a correctly added domain plus properly configured DNS is the foundation that supports security, performance, and user trust.