How to Create a Subdomain in cPanel — cPanel & Hosting How-Tos cPanel & Hosting How-Tos

How to Create a Subdomain in cPanel

By Genhost Team 2 min read

A subdomain is a section of your existing domain — like blog.yoursite.com, shop.yoursite.com or staging.yoursite.com. It’s perfect for a blog, a store, a help centre or a test copy of your site. Creating one in cPanel takes a moment.

When to use a subdomain

  • blog. — a blog separate from your main site.
  • shop. or store. — an online store on its own platform.
  • help. or docs. — a knowledge base or documentation.
  • staging. or dev. — a test copy where you try changes safely.

If instead you want to host a completely different domain, use an addon domain.

Step 1: Create the subdomain

  1. In cPanel, open Domains (or Subdomains on some layouts).
  2. Click Create A Domain and enter the full subdomain, e.g. blog.yoursite.com.
  3. cPanel sets a document root folder automatically, such as public_html/blog. That’s where this subdomain’s files go.
  4. Click Submit.

Because your main domain already points to the server, the subdomain works right away — no separate DNS step needed.

Step 2: Put a site on it

Add content to the subdomain’s folder:

Step 3: Check it and secure it

Visit blog.yoursite.com. You should see the new subdomain’s content, and AutoSSL will issue a free SSL certificate for it automatically, so it loads over HTTPS.

Subdomain vs subfolder for SEO

Both work. As a rule of thumb:

  • Use a subfolder (yoursite.com/blog) when the content is closely tied to your main site’s topic.
  • Use a subdomain (blog.yoursite.com) when it’s a distinct section or runs on a different platform.

Search engines handle both well, so choose whichever fits your structure.

Room for every project

Our Web Hosting and WordPress Hosting plans let you create subdomains freely, each with its own SSL, on fast NVMe storage. A subdomain is also the safest place to build a staging copy before pushing changes to your live site.

Frequently asked questions

Do subdomains need separate DNS setup?

No. As long as your main domain already points to the server, cPanel creates the subdomain's DNS record for you automatically. It works as soon as you create it.

Can I install WordPress on a subdomain?

Yes. When you run the 1-click WordPress installer, choose the subdomain as the install location. This is a common way to run a blog or a staging copy separately from the main site.

Is a subdomain good or bad for SEO?

Subdomains are fine for SEO. Search engines treat them as part of your site. Use a subdomain when the content is a distinct section (like a help centre or store); use a subfolder when it is closely tied to the main site's topic.