Creating Subdomains in cPanel
A subdomain is an extension of your main domain (e.g., blog.yourdomain.com, shop.yourdomain.com). Each subdomain can host a separate website or application.
Steps
- Log in to cPanel.
- Under Domains, click Subdomains.
- In the Subdomain field, type the prefix (e.g.,
blog). - Select your main domain from the dropdown.
- The Document Root will auto-fill (e.g.,
public_html/blog). You can change this if needed. - Click Create.
Uploading Files to a Subdomain
Upload your subdomain's files to the document root folder that was created (e.g., public_html/blog). Files there will be served at blog.yourdomain.com.
Subdomain DNS
cPanel automatically creates an A record for the subdomain pointing to your server. If you changed nameservers or manage DNS elsewhere, you will need to add the A record manually.
Budget plan allows up to 5 subdomains. Premium allows 15. VIP is unlimited. Check your plan limits under Subscriptions in your dashboard.