How to Create a Subdomain in cPanel

A subdomain is an address underneath your main domain, such as blog.example.com or shop.example.com. They are free and you can create as many as your plan allows.

Steps

  1. Log in to cPanel.
  2. Under Domains, open Subdomains (or Domains on newer versions).
  3. Enter the subdomain part only — for example blog, not the full address.
  4. Select the parent domain.
  5. The Document Root is filled in automatically. Change it only if you know you need to.
  6. Click Create.

What happens next

cPanel creates the DNS record and the directory. The subdomain usually works within a few minutes when the domain's DNS is hosted on the same server. If your DNS is managed elsewhere — at your registrar or a service such as Cloudflare — you must add the record there yourself, and cPanel creating it locally will have no effect.

Uploading your site

Place your files in the document root shown when you created it, typically:

/home/youraccount/public_html/blog

Add SSL

A subdomain is not automatically covered by your existing certificate unless it is a wildcard. Issue a certificate for the subdomain in SSL/TLS Status so it loads over HTTPS without a browser warning.

If it does not resolve

Allow up to a few hours for DNS propagation, and confirm your DNS really is hosted where you think it is.

Was this article helpful?