Creative agency glossaryWeb, UX/UI, and Design

Subdomain

A subdomain is a prefix added in front of a domain name, such as shop or blog in shop.example.com, that creates a separate section or site under the same domain.

What is a subdomain?

A domain name has levels, read from right to left. In blog.example.com, the .com is the top-level domain, example is the name the owner registered, and blog is a subdomain. The owner can create as many subdomains as they like without registering anything new, simply by adding records in the domain's DNS settings. The familiar www at the start of many addresses is itself a subdomain, a convention left over from the early web.

Each subdomain can point to a different server, run different software and be managed by a different team. That is why they are used for things that live apart from the main site: a help center on a support platform, a store on an e-commerce service, a staging copy for testing, a regional version, a web app at app or a login portal at account.

Why it matters

Why a subdomain matters

Subdomains give flexibility, and they carry trade-offs that are easy to miss. Search engines treat each subdomain largely as a site of its own, so content on blog.example.com may not benefit as directly from the main site's authority as it would at example.com/blog. That debate has run for years: Google says it handles both well, while many SEO practitioners have seen content gain from moving into a folder. Subdomains also split analytics and cookies by default, and every one that is created has to be looked after, because a forgotten subdomain pointing at a service no longer in use can be taken over by someone else.

In practice

How a subdomain works in practice

  1. 01

    Creating one is a DNS record: an A or AAAA record pointing the subdomain at a server's address, or a CNAME pointing it at another hostname, such as a platform's service. The platform at the other end is configured to answer for it, a certificate is issued so it runs on HTTPS, and analytics are set to track across the main domain and its subdomains, so visitors moving between them are not counted twice.

  2. 02

    The bigger decision is whether to use one at all. We put content that should rank, such as articles, guides, a glossary or case studies, in folders on the main domain, where it builds the main site's authority. Subdomains are for things that are technically separate or should be kept away from search: the app, the help center, staging, internal tools. And every subdomain goes on a list, so it is removed from DNS when the service behind it is retired.

Watch out

What people get wrong about subdomains

Putting the blog on a subdomain because the platform made it easy, then wondering why it ranks poorly and does little for the main site. Second, leaving staging subdomains open to search engines, so an unfinished copy of the site competes with the real one. Third, forgetting old records. A subdomain still pointing at a deleted cloud service or a canceled platform is an open invitation to subdomain takeover, where someone else claims the service and publishes their content under your name.

Questions

People also ask

Is a subdomain or a subfolder better for SEO?

For content you want to rank, a subfolder is usually the safer choice, because it sits inside the main site and shares its authority more directly. Subdomains suit things that are technically separate, such as an app or a help center. Google says it can handle either, but results in practice tend to favor folders.

Does a subdomain cost extra?

No. Once you own a domain you can create subdomains freely in its DNS settings. Some hosts and platforms charge for hosting or certificates on additional subdomains, but the subdomain itself is free.

Is www a subdomain?

Yes. www.example.com is technically a subdomain of example.com, and a site should pick one version as canonical and redirect the other to it. Which one you choose matters less than choosing consistently.

Next to it in the glossary

  1. Shopify DevelopmentShopify development is the design, building and customization of online stores on the Shopify e-commerce platform, from theme design and custom features to integrations and performance work.
  2. Site MigrationA site migration is any major change to a website's address, platform, structure or hosting that can affect how search engines find and rank it, such as a new domain, a new CMS or a redesign.
  3. SrcsetSrcset is an HTML attribute that lists several versions of an image at different sizes or resolutions, so the browser can download the one best suited to the visitor's screen.
  4. Top-Level DomainA top-level domain is the last part of a domain name, after the final dot, such as .com, .org, .uk or .nyc.
  5. Transport Layer Security (TLS)Transport Layer Security (TLS) is the encryption protocol that secures traffic between browsers and websites, the technology that puts the S in HTTPS.
  6. UI Component LibrariesA UI component library is a collection of ready-made, reusable interface elements, such as buttons, forms, menus and dialogs, that designers and developers use to build products quickly and consistently.

Every Web, UX/UI, and Design term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage