Skip to main content

cPanel Guide

Here's How to Create a Subdomain in cPanel (and Where the Files Go)

Set up something like blog.yoursite.com or app.yoursite.com in a couple of minutes, and understand exactly where its files need to live.

Minutes

Typical time for a new subdomain to start resolving

Free

Auto-renewing SSL issued for subdomains too

1-Click

Installers available once the subdomain folder exists

24/7

Human support if a subdomain won't resolve

In short

Here's how to create a subdomain in cPanel: open the Domains or Subdomains tool, type the subdomain name (like blog) and confirm the parent domain, then let cPanel either auto-generate a document root folder or specify your own. cPanel creates the folder inside public_html automatically and the subdomain resolves within minutes on most accounts since DNS is handled internally.

A subdomain behaves like a separate site with its own document root and can run entirely different software than the main domain, which is why it's the right tool for a blog, staging area, or app that shouldn't share the main site's codebase.

A subdomain is a prefix added in front of a registered domain — blog.yoursite.com, shop.yoursite.com, app.yoursite.com — that cPanel treats as its own addressable site with its own folder, even though it shares the domain and hosting account underneath. It's the standard way to run a second WordPress install, a staging copy, or a completely different application without buying another domain.

This walkthrough covers the exact fields in cPanel's subdomain tool, where the auto-created folder actually lands inside public_html, how to point the subdomain somewhere else if needed, and the situations where a subfolder is actually the better choice instead.

How to Create a Subdomain in cPanel: Opening the Right Tool

In cPanel, the Domains section (sometimes still labeled Subdomains on some themes) is where a new subdomain gets created. Selecting it shows a form asking for the subdomain name and, separately, which domain on the account it should attach to if more than one domain is present.

Typing just the prefix — blog, shop, staging, app — is all that's needed in the subdomain field; cPanel appends the parent domain automatically once it's selected from the dropdown, so there's no need to type the full blog.yoursite.com string by hand.

The Auto-Created Document Root

As soon as a subdomain name is typed, cPanel suggests a document root folder, almost always public_html/subdomainname by default. That folder is where the subdomain's files need to live — anything uploaded there is what visitors to blog.yoursite.com will actually see, completely separate from whatever sits in public_html itself for the main domain.

The suggested path can be overridden before creating the subdomain, which is useful if the intent is to point the subdomain at an existing folder that already has files in it, rather than generating a fresh empty one. Once created, that document root can still be changed later by editing the subdomain's settings, though moving files afterward is the safer order of operations.

After Creation: DNS, SSL, and Installing Something

Because the subdomain lives on the same account as the main domain, cPanel handles the DNS record internally and the subdomain typically starts resolving within minutes rather than requiring manual DNS changes at a registrar. Free auto-renewing SSL then gets issued for the new subdomain much like it does for the main domain, so it can run over https without extra certificate purchases.

With the folder in place, a 1-click installer (WordPress or another app) can be pointed at that exact subdomain and document root to get a working site running there immediately, entirely independent from whatever the root domain is running.

Subdomain vs. Subfolder: Which One Actually Fits

A subfolder (yoursite.com/blog) is simpler when the content is meant to feel like one continuous site sharing the same theme, navigation, and SEO authority as the root domain — search engines generally treat a subfolder as part of the same site far more readily than a subdomain. A subdomain is the better call when the two are genuinely separate: a different CMS, a staging copy that must never be indexed, or an app with its own login system.

It's also worth deciding this before building anything substantial, since moving content from a subdomain into a subfolder later (or the reverse) means dealing with redirects and re-establishing whatever search visibility that section had built up under the old address.

How to Create a Subdomain in cPanel

Hosting Built for More Than One Site on an Account

Hosting Cheap's cPanel-style panel makes adding a subdomain, pointing it at the right folder, and installing WordPress there a job that takes a few minutes rather than a support ticket.

Every subdomain created gets the same free auto-renewing SSL and pure NVMe SSD performance as the main site, so a staging area, blog, or app subdomain isn't running on second-tier infrastructure.

  • Subdomain creation with automatic document root setup
  • Free auto-renewing SSL issued per subdomain
  • 1-click installers available for any subdomain folder
  • 24/7 human support for DNS and subdomain resolution issues

Why Hosting Cheap

What you get

Simple Subdomain Tool

Type a prefix, confirm the domain, and cPanel handles folder creation and internal DNS.

Free Auto-Renewing SSL

Subdomains get their own certificate without a separate purchase or renewal step.

Pure NVMe SSD + LiteSpeed

A subdomain running a second site performs just as fast as the primary one.

1-Click Installers

Point WordPress or another app straight at the new subdomain's document root.

Daily Backups

Subdomain content is included in the same backup routine as the rest of the account.

24/7 Human Support

Get help if a subdomain isn't resolving or the document root looks wrong.

How It Works

Get set up in a few steps

1

Open Domains in cPanel

Find the Domains or Subdomains section from the cPanel dashboard.

2

Enter the subdomain name and folder

Type the prefix, confirm the parent domain, and accept or edit the suggested document root.

3

Upload files or run an installer

Add content directly or launch a 1-click installer targeting the new subdomain's folder.

Included

Everything you need, on every plan

  • Subdomain prefix decided (blog, shop, app, staging, etc.)
  • Correct parent domain selected if the account has more than one
  • Document root confirmed or set to an existing folder on purpose
  • Subdomain resolves in a browser before installing anything
  • SSL certificate active on the new subdomain before going live
  • Staging or internal subdomains excluded from search indexing if needed
  • Files uploaded to the subdomain's own folder, not the main public_html

FAQ

Frequently asked questions

Where do subdomain files actually go?

By default, cPanel creates a folder inside public_html named after the subdomain, such as public_html/blog. Anything placed there is what the subdomain serves, separate from the main site's files.

Does a new subdomain need its own DNS record?

Not usually — since the subdomain lives on the same hosting account as the main domain, cPanel manages the record internally and it typically resolves within minutes without touching the registrar.

Can I run a completely different app on a subdomain?

Yes. A subdomain has its own document root, so it can run WordPress while the main domain runs something else entirely, or vice versa, with no conflict between the two.

Does a subdomain get its own SSL certificate?

Yes, free auto-renewing SSL covers subdomains created on the account, so a subdomain can run over https the same as the root domain.

Should I use a subdomain or a subfolder for a blog?

A subfolder generally keeps SEO benefit tied to the main domain more reliably, so it's the common choice for a blog meant to support the main site. A subdomain fits better when the content is a genuinely separate application or audience.

Can I point a subdomain at a folder outside public_html?

cPanel allows specifying a custom document root when creating the subdomain, but keeping it inside public_html is simpler for permissions and is the default most accounts should stick with.

Add a Subdomain in Minutes

Get cPanel access with simple subdomain creation, free SSL, and NVMe SSD speed on every site.

Get Started