# Create a subdomain
Source: https://docs.webgee.com/en/hosting/how-to-create-a-subdomain-in-cpanel







Add a subdomain like `blog.example.com` or `staging.example.com`. Applies to
shared, reseller and Premium hosting.

## Create it [#create-it]

1. In cPanel, open **Domains** under **Domains**.

   <img alt="The Domains section in cPanel" src="__img0" />

2. Select **Create A New Domain**.

   <img alt="The Create A New Domain button" src="__img1" />

3. Enter the full subdomain in **Domain**, for example `blog.example.com`.

4. Untick **Share document root with example.com**.

5. Set the directory the subdomain should serve from — `blog` is created for you
   under your home directory by default.

6. Select **Submit**.

<Callout type="warn">
  Step 4 is the one that matters. Leaving it ticked points the subdomain at your
  main site, so `blog.example.com` and `example.com` serve identical content
  from the same files. That is occasionally what you want; usually it is not,
  and it is confusing to unpick later.
</Callout>

## Check it worked [#check-it-worked]

```bash
curl -sI https://blog.example.com | head -n 1
```

A `200` or a `403` (empty directory) means DNS and the web server are both
working. `Could not resolve host` means DNS has not propagated yet — allow a few
minutes.

Your subdomain is covered by AutoSSL automatically, though the certificate can
take a few minutes to issue. See
[Install a free SSL certificate](/en/security-ssl/free-ssl-certificate).

## Manage or remove one [#manage-or-remove-one]

All subdomains are listed under **cPanel → Domains**, where you can change the
document root or remove them.

Removing a subdomain does not delete its files — they stay in the directory, and
you should remove them separately if you no longer want them.

## Related [#related]

* [Create a wildcard subdomain](/en/hosting/how-to-add-wildcard-subdomain-through-cpanel)
* [Convert a cPanel account to an addon domain](/en/hosting/how-do-i-convert-a-cpanel-account-to-an-addon-domain)
