A subdomain is the part of the URL before the main domain: blog.example.com, shop.example.com. Subdomains let you separate different sections of a site or create independent projects without buying a new domain.
Creating a Subdomain in cPanel
- Go to cPanel → Domains → Subdomains
- Enter subdomain name (e.g.,
blog) - Select the main domain
- Set Document Root:
public_html/blog - Click Create
Manual DNS Configuration
# A record (direct IP)
blog IN A 192.168.1.100
# CNAME (alias)
shop IN CNAME example.com.
# Wildcard — all subdomains
* IN A 192.168.1.100
💡 Subdomain vs Subfolder for SEO: Google treats subdomains as separate sites. If your blog is important for main site SEO, use
example.com/blog/ instead — subfolders inherit the main domain's authority.