Skip to main content
miji.be

Subdomain

A prefix added before the main domain name, used to organize different sections or services of a website.

Aug 30, 2026 / About 1 min read

SEO

A subdomain is a string added before the main (root) domain, separated by a dot. In "blog.example.com," "blog" is the subdomain. Once you own a domain, you can create unlimited subdomains at no additional cost.

Common uses for subdomains include separating website functions: "www.example.com" for the main site, "blog.example.com" for the blog, "shop.example.com" for e-commerce, and "api.example.com" for API endpoints. Google uses this pattern extensively with "mail.google.com," "drive.google.com," and "docs.google.com."

From an SEO perspective, the subdomain vs. subdirectory (example.com/blog/) debate has persisted for years. Google's John Mueller has stated that Google can handle both properly, but in practice many people report that subdirectories consolidate domain authority more effectively, and new or smaller sites often default to subdirectories. Treat that as experience-based guidance rather than a rule that guarantees better rankings.

Subdomains are commonly used when setting up custom domains for URL shortening services. Creating a subdomain like "link.mycompany.com" or "go.mycompany.com" and pointing it via CNAME record to the shortening service lets you leverage your brand's domain authority while maintaining a dedicated namespace for short links.

Technically, DNS allows independent record configuration for each subdomain. You can host your main site and blog on different servers, or use different CDN providers for each. This flexibility is the subdomain's greatest strength.

Was this article helpful?

Related Terms

Custom Domain

A privately owned domain name used with a URL shortening service instead of the service's default domain.

CNAME Record

A CNAME record maps one domain name to another in DNS. Used to point custom branded short URL domains to the URL shortening service infrastructure without changing IP addresses directly.

DNS Resolution

The process of translating a human-readable domain name into the IP address of the server hosting the website.

A Record

A DNS record that maps a domain name to an IPv4 address. The foundational building block of web hosting.

Canonical URL

A mechanism that, when multiple URLs exist for the same content, specifies the URL that search engines should index preferentially.

Subdomain Takeover

An attack in which a third party takes over a subdomain where an unused CNAME record remains, and exploits the trustworthiness of the legitimate domain.

Related Articles

What Is a Domain Name? A Friendly Guide to Internet Addresses

Learn how domain names work as internet addresses. Covers TLDs like .com and .jp, domain registration, uniqueness, and how domains relate to URLs.

How Custom Short URLs Boost Brand Recognition

Discover how branded short URLs strengthen brand identity. Learn strategies for creating memorable custom URLs that increase trust and CTR.

URL Shorteners and SEO - How Short Links Affect Search Rankings and Link Equity

Analyze the impact of short URLs on search engine optimization. Covers 301 redirect link equity, crawl budget effects, and SEO best practices.

FAQ

Are subdomains free to create?
Yes, if you own the domain, you can create subdomains through DNS settings at no additional cost. However, each subdomain may need its own SSL certificate (wildcard certificates can cover all subdomains).
Which is better for SEO: subdomain or subdirectory?
The common explanation is that subdirectories (example.com/blog/) consolidate domain authority better and are therefore friendlier to SEO. Treat that as a rule of thumb: subdomains are appropriate when technical constraints or service independence require them.
Is there a character limit for subdomains?
Each label (section between dots) can be up to 63 characters, and the total domain name can be up to 253 characters. In practice, keep subdomains short and memorable.

Put the terms to work

Shorten a URL for Free