Creating a Subdomain in cPanel

Overview

A subdomain is a subsection of your main website that functions independently, often for organizing specific content or services. Subdomains are created using a prefix added to your main domain. For example, if your domain is example.com, a subdomain might be blog.example.com.

Subdomains are useful for:

  • Creating blogs or forums (blog.example.com)
  • Running test environments (staging.example.com)
  • Segmenting multilingual sites (ar.example.com)

In this guide, you'll learn how to create a subdomain using the cPanel interface.

Notes
The Document Root is the folder inside your hosting account where files for this subdomain are saved. For example:
public_html/subdomain
After creating a subdomain, you can upload content to it using File Manager or FTP, just like with your main site.
DNS propagation may take some time before the subdomain becomes fully accessible.

How to Create a Subdomain in cPanel

  1. Log in to your cPanel account.
  2. On the Home page, scroll down to the Domains section and click the Domains icon.
  3. Click the Create a New Domain button.
  4. In the Domain field, enter the full subdomain you want to create — for example:
    subdomain.yourdomain.com
  5. The Document Root field will be auto-filled. This is the directory where the subdomain’s files will be stored:
    • By default, the “Share document root” option will be unchecked.
    • If you want the subdomain to use a different directory, you can change the Document Root path.
  6. Click Submit to create the subdomain.
Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on May 1, 2025
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support