Disclosure: This post contains affiliate links. We earn a commission at no extra cost to you if you purchase through our links.
What is a Subdomain?
A subdomain is a prefix added to your main domain that creates a separate web address. Examples: blog.yourdomain.com, shop.yourdomain.com, support.yourdomain.com. Subdomains allow you to host separate websites or sections under your main domain without purchasing additional domains.
Common Uses for Subdomains
- blog.yourdomain.com — separate blog section
- shop.yourdomain.com — online store
- support.yourdomain.com — help center or ticketing system
- staging.yourdomain.com — test environment for development
- api.yourdomain.com — API endpoint for developers
- mail.yourdomain.com — email server reference
Get Hostinger – Easy Subdomain Management
Create unlimited subdomains in hPanel. All hosting plans. From $1.99/mo.
Get Hostinger 80% OffCoupon S0TABIDHULP1 · 30-day money-backHow to Create a Subdomain on Hostinger
- Login to hpanel.hostinger.com
- Click Domains in the left sidebar
- Click Subdomains
- Click Create Subdomain
- Enter your subdomain name (e.g. "blog" for blog.yourdomain.com)
- Select the main domain it should belong to
- Set the document root (directory where subdomain files will be stored)
- Click Create
- Subdomain is active within minutes
How to Install WordPress on a Subdomain
- Create the subdomain as above (e.g. blog.yourdomain.com)
- Go to hPanel → Websites → Add Website
- Select WordPress as the platform
- Choose your subdomain (blog.yourdomain.com) from the domain dropdown
- Set admin credentials and click Install
- WordPress installs on your subdomain automatically
Adding SSL to Your Subdomain
After creating a subdomain, add SSL to secure it:
- hPanel → SSL
- Click Install SSL Certificate
- Select your subdomain (blog.yourdomain.com)
- Click Install — free Let's Encrypt SSL is applied automatically
SEO note: Search engines treat subdomains as separate websites from your main domain. If you want your blog content to contribute to your main domain's SEO authority, use a subdirectory (yourdomain.com/blog/) instead of a subdomain (blog.yourdomain.com/). For completely separate projects, subdomains work well.