Subdomain
A subdomain is an additional part of a domain name that is placed before the main domain and is used to create separate website sections with their own addresses. It helps structure a web resource, split services, or launch local website versions.
What is a Subdomain?
A subdomain is a unique address that is a subdomain of the main (root) domain. It appears as a separate site but is technically linked to the root domain.
Example:
Main domain: example.com
Subdomains: shop.example.com, blog.example.com, support.example.com
In this case:
- shop — subdomain for an online store.
- blog — subdomain for a blog.
- support — subdomain for a support service.
Subdomain Structure
A domain name consists of several levels:
text
subdomain.domain.zone
| Level | Example | Description |
| Top-Level Domain (TLD) | .com, .ru, .org | Domain zone |
| Second-Level Domain | example.com | Main (root) domain |
| Third-Level Domain and deeper | blog.example.com, en.shop.example.com | Subdomains |
A subdomain can be considered an “extension” of the main site, but with the ability to operate independently — having its own content, CMS, design, and analytics.
Why Use Subdomains?
Subdomains are used when you need to:
- Separate business lines — e.g., academy.company.ru and shop.company.ru.
- Create language-specific versions — en.example.com, de.example.com.
- Launch separate services — mail.google.com, maps.google.com.
- Conduct tests and development — dev.example.com, beta.example.com.
- Configure geographic division — spb.example.ru, kazan.example.ru.
- Create a blog, forum, or landing page without altering the main site.
Advantages of Subdomains
- Flexibility — different projects can be hosted on the same domain base.
- Separate SEO and analytics settings — different goals, keywords, and pages.
- Load distribution — each subdomain can be on its own server.
- User convenience — different addresses for different tasks.
- Security — test and administrative zones can be isolated.
Disadvantages of Subdomains
- SEO Specifics: Search engines (Google, Yandex) often treat subdomains as separate sites, meaning:
- Each subdomain needs to be promoted individually.
- The main domain’s “link authority” isn’t directly transferred.
- Separate optimization and indexing efforts are required.
- Additional Maintenance: Separate CMS, SSL certificates, analytics setup.
- Structural Errors: An overly complex hierarchy (e.g., en.blog.dev.example.com) worsens navigation.
How to Create a Subdomain
- Via your hosting control panel or by adding a DNS record. Add an A record (IP address) or CNAME record (reference to the main domain).
- dns
- blog IN CNAME example.com
- Configure the server or CMS to work with the new address.
- Install an SSL certificate (e.g., a wildcard certificate for *.example.com).
- Add it to Google Search Console and Yandex.Webmaster as a separate property.
Subdomains and SEO
- A subdomain is indexed separately, so it’s important to create sitemap.xml and robots.txt for each.
- Internal links between subdomains function as external links.
- If a subdomain is for language versions, add the hreflang tag.
- To consolidate SEO authority, it’s better to use subdirectories if the content is similar (example.com/blog/ instead of blog.example.com).
Example: Google treats shop.example.com and example.com as different sites — even if they have the same owner and structure.
Subdomain vs. Subdirectory
| Characteristic | Subdomain | Subdirectory |
| Example | blog.example.com | example.com/blog/ |
| SEO | Separate site | Shares overall SEO authority |
| Setup | Via DNS | Via CMS/server |
| SSL Certificate | Separate or wildcard | Shared |
| Analytics Tracking | Separate | Unified |
| Used For | Separate services, languages, regions | Sections of a single site |
Real-World Examples
- Google: maps.google.com, news.google.com, mail.google.com — separate services.
- Yandex: market.yandex.ru, music.yandex.ru, cloud.yandex.ru.
- Media: en.wikipedia.org, fr.wikipedia.org — language versions of the encyclopedia.
Conclusion
A subdomain is a way to organize multiple independent sections within a single domain. It helps structure a large site, separate audiences, and segment business lines but requires separate management of SEO, analytics, and security.
