In plain English A name in front of your domain, like shop.example.com or blog.example.com. It can show a different site from the main one.
A subdomain is a name in front of your domain, such as blog.example.com, shop.example.com or www.example.com. It belongs to the same domain registration and is managed in the same DNSDNS The internet’s phone book. It turns a name people can remember, like example.com, into the number address computers use to find the server. More about DNS → zone, but it can point anywhere: a different server, a different service, or the same server as the main site.
Creating one
A subdomain is just a DNS record with that name. To point blog.example.com at a server, add:
| Name | Type | Value |
|---|---|---|
blog | A | 203.0.113.20 |
Or, for a hosted service that gives you a hostname, a CNAME to that hostname. Then configure the server or service to answer for the new name, and give it a certificate; a certificate for example.com does not cover subdomains unless it lists them or is a wildcard.
Is www a subdomain?
Technically yes. By convention it points to the same site as the bare domain, and one should redirect to the other so search engines see a single address.
Subdomain or folder?
blog.example.com and example.com/blog/ can host the same content. A folder is simpler: one site, one certificate, and it clearly shares the main site’s reputation in search. A subdomain makes sense when the part runs on different software or a different server, such as a help desk, a status page or an app.
Deeper levels
Names can nest, as in api.eu.example.com. Wildcard certificates cover only one level, so *.example.com covers eu.example.com but not api.eu.example.com.
Questions people ask
What is a subdomain, with an example?
In shop.example.com, the word shop is the subdomain and example.com is the domain. Other common examples are blog.example.com, mail.example.com and www.example.com.
Is a subdomain free?
Yes. You can create as many subdomains as you like on a domain you already own, with no extra registration. Your host may limit how many it will host on one plan.
Is it sub domain or subdomain?
“Subdomain” as one word is standard. “Sub domain” and “sub-domain” mean the same thing.
How do I create a subdomain in cPanel?
Open Domains, choose Create A New Domain, type the full name such as blog.example.com, and give it its own folder. See addon domain vs subdomain vs alias.