WebGee Docsالتوثيق
cPanel & Hosting

Create a subdomain

Add a subdomain such as blog.example.com in cPanel, and choose whether it serves its own directory or shares your main site.

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

Create it

  1. In cPanel, open Domains under Domains.

    The Domains section in cPanel

  2. Select Create A New Domain.

    The Create A New Domain button

  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.

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.

Check it worked

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.

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.

On this page