Creating and Managing Subdomains
A subdomain is a prefix added to your domain (e.g., blog.yourdomain.com).
Creating a Subdomain in cPanel
- Go to Domains (or Subdomains in older cPanel)
- Click Create A New Domain
- Enter the subdomain (e.g., blog.yourdomain.com)
- The document root is set automatically
- Click Submit
Creating a Subdomain in DirectAdmin
- Go to Subdomain Management
- Enter the subdomain name
- Click Create
Creating a Subdomain in Plesk
- Go to Websites & Domains
- Click Add Subdomain
- Enter the name and document root
- Click OK
Common Uses
- blog.yourdomain.com — separate blog
- shop.yourdomain.com — e-commerce store
- dev.yourdomain.com — development/staging
- mail.yourdomain.com — webmail access
DNS Setup
Subdomains typically use an A record pointing to your hosting server IP:
| Type | Name | Value |
|---|---|---|
| A | blog | YOUR_SERVER_IP |
If using Cloudflare or external DNS, add the record there.
SSL for Subdomains
- AutoSSL in cPanel covers subdomains automatically
- In Plesk, issue a certificate per subdomain
- Wildcard SSL (*.yourdomain.com) covers all subdomains