How to Create a Subdomain on cPanel
Introduction
Creating a subdomain can be a useful way to organize and manage different sections of your website. A subdomain is a prefix added to your main domain name, allowing you to create a unique web address for specific content. For example, if your main domain is example.com, you could create a subdomain such as blog.example.com for your blog.
In this guide, we will walk you through the process of creating a subdomain using cPanel.
Procedure
- Log into cPanel on the account to add the subdomain on
- Click Domains under the "Domains" section
- Click the Create A New Domain button
- Enter the subdomain name to add in the "Domain" text box (e.g., blog.example.com)
- Deselect the "Share document root (/home/username/public_html) with domain.tld" option
- Enter the directory where you want the files for this subdomain to exist (We recommend you use the autofilled option)
- Click the Submit button