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.
How to Create a Subdomain in cPanel
- Log in to your cPanel account.
- On the Home page, scroll down to the Domains section and click the Domains icon.
- Click the Create a New Domain button.
- In the Domain field, enter the full subdomain you want to create — for example:
subdomain.yourdomain.com - 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.
- Click Submit to create the subdomain.