Subdomain
A subdomain is a separate section of your website that sits before your root domain in the URL. For example, in blog.yoursite.com, the word 'blog' is the subdomain, 'yoursite' is the root domain,...
Who this is for: Small business owners and beginners setting up their first WordPress site who want to understand how subdomains work before touching their hosting control panel.
Affiliate disclosure: WPSchool uses affiliate links. If you purchase through our links, we may earn a commission at no extra cost to you.
Last verified: April 2026
A subdomain is a separate section of your website that sits before your root domain in the URL. For example, in blog.yoursite.com, the word “blog” is the subdomain, “yoursite” is the root domain, and “.com” is the top-level domain.
Answer Capsule
A subdomain is a prefix attached to your main domain name that creates a distinct, independently accessible section of your website. shop.example.com and blog.example.com are both subdomains of example.com. You can point each subdomain to different content, a different WordPress install, or an entirely different server.
What Does a Subdomain Look Like?
A full URL has three parts separated by dots:
blog . yoursite . com
↑ ↑ ↑
subdomain root top-level
domain domain
Common real-world examples we see on client sites:
| Subdomain URL | Typical Use |
|---|---|
shop.yoursite.com | Separate WooCommerce store |
blog.yoursite.com | Standalone blog section |
staging.yoursite.com | Test environment before going live |
app.yoursite.com | Web application or member portal |
help.yoursite.com | Knowledge base or documentation |
You can create as many subdomains as your hosting plan allows—most shared hosts permit at least 10, and managed hosts like Kinsta allow unlimited subdomains on their starter plans.
Why Would You Use a Subdomain in WordPress?
The most common reason is isolation. When you install a second WordPress site on staging.yoursite.com, it runs completely separately from your live site. Changes there don’t affect production.
We see this often on client sites where a freelancer needs a safe place to build or test without touching the live environment. A staging subdomain costs nothing extra on most hosting plans and saves hours of cleanup if something breaks.
Subdomains also make sense when two parts of your site have very different purposes. A SaaS company might run its marketing site at yoursite.com and its web app at app.yoursite.com—different WordPress installs, different plugins, different performance requirements.
Subdomain vs. Subdirectory: Which Should You Use?
A subdirectory puts the section after your domain: yoursite.com/blog. A subdomain puts it before: blog.yoursite.com.
For most beginners building a single business site, use a subdirectory. Google’s John Mueller confirmed in 2022 that Google treats subdomains and subdirectories equivalently for SEO, but subdirectories are simpler to manage in a single WordPress install. You avoid maintaining two separate sites, two sets of plugins, and two update cycles.
Use a subdomain when the two sections genuinely need to be separate—different software, different teams, or a staging environment.
How to Create a Subdomain in WordPress
You create subdomains at the hosting level, not inside WordPress itself. The process takes under five minutes in any cPanel host:
- Log in to your hosting control panel (cPanel, Plesk, or your host’s dashboard).
- Find Subdomains under the Domains section.
- Enter the prefix you want (e.g.,
staging) and select your root domain. - Your host creates the subdomain and a new document root folder automatically.
- Install WordPress into that folder using your host’s one-click installer, or configure it manually.
DNS propagation for new subdomains typically takes under 30 minutes on the same hosting account, since the record stays within the same nameserver zone.
Related Terms
- Domain name — the root address your subdomain sits on
- DNS record — the A record or CNAME entry that points your subdomain to a server
- Subdirectory — an alternative way to create site sections (e.g.,
yoursite.com/blog) - WordPress Multisite — a WordPress feature that can serve multiple sites from subdomains automatically
- Staging site — a test environment, commonly hosted on a subdomain
Additional Reading
- How to Set Up a WordPress Staging Site — step-by-step guide for creating
staging.yoursite.com - Subdomain vs. Subdirectory for WordPress SEO — which structure wins for search rankings
- WordPress Multisite: What It Is and When to Use It — how multisite uses subdomains to power multiple sites from one install
- Choosing the Right Hosting Plan for Multiple WordPress Sites — what to look for when you need subdomain support
For the official DNS specification that governs how subdomains resolve, see RFC 1034 at IETF.org.