Privacy

Subdomain or subdirectory? Choose an address you can operate

Choose a blog, help center or application address by platform ownership, publishing work, login boundaries and maintenance. A URL shape alone supplies none of those arrangements.

Made by Pagember · Editorial policy

Editorial guidancePublished Updated Sources

The short answer

Neither address ranks higher by default, so choose the one you can operate. A subdirectory usually suits content on the same platform as the main site, while a subdomain suits a separate tool that cannot serve under a path. Compare platform support, ownership, security review, maintenance and reader navigation for each option, and confirm with each platform before buying anything.

On this page9 sections

Google does not rank subdomains or subdirectories higher by default, so choose by the system that will publish the section. If the new content runs on the same platform as the main site, a subdirectory such as example.com/blog/ is usually simpler. If it runs on a separate tool your main platform cannot serve under a path, a subdomain such as help.example.com is the practical choice.

Two conceptual site structures contrast a separate docs.example.com branch with an example.com/docs path inside one site.
SectionCommon choiceWhy
Blog on the same WordPress siteSubdirectory: /blog/Same install, editors, theme and backups
Shop on a hosted store platformSubdomain: shop.The store platform serves its own hostname
Help center in a support toolSubdomain: help.Support tools usually connect through a CNAME on a hostname
Language versions on one CMSSubdirectory: /fr/One system, shared navigation and settings
Separate app or customer loginSubdomain: app.Separate origin for cookies and deployment

The rest of this guide shows how to confirm that choice, using two hypothetical examples: a local-history journal adding a guides section and a software team adding a separately managed help center.

Describe the two address shapes precisely

A directory example is https://example.test/guides/. A subdomain example is https://help.example.test/. Start by agreeing what the section will contain, which system publishes it and who is responsible when it fails. Avoid debating the slash while those questions remain unanswered.

Google's SEO Starter Guide says the choice between subdomains and subdirectories should follow business and management needs. It does not supply a universal winner. A useful proposal explains the intended reader journey and maintenance arrangement rather than promising a ranking reward from the address alone.

A subdomain does not automatically require another hosting plan, and a directory does not automatically let an unrelated service run beneath your site. Ask each platform which arrangement it supports before buying anything.

Use an operating matrix before a URL vote

For each candidate, fill in the same questions. “The agency will handle it” is incomplete unless the relevant access, ongoing work and exit route are known. Give unanswered items a named owner and resolve them before launch.

DecisionJournal's new guidesSeparate help serviceEvidence to request
PublishingSame editors and article workflowSupport team owns releasesWho can preview, approve and undo edits?
PlatformExisting publisher can hold the sectionA separate tool may be requiredWhich address modes are supported?
AccessExisting roles may fitDifferent permissions may be neededWho controls each account and integration?
RecoveryShared editorial recovery processSeparate service restorationWho restores content and checks the public route?
NavigationReaders remain in the journalReaders cross into supportHow are the transition and return explained?

If the support tool only supports one arrangement, record that constraint. If both work, compare the complete operating costs and responsibilities rather than only the subscription line.

Understand the browser boundary without overstating it

MDN defines an origin by scheme, host and port. Changing only the path does not create a different origin; changing the host does. Consequently, a subdomain can create a browser-origin boundary that a neighboring directory does not.

A different origin does not mean different administrators, hosting accounts or credentials. Review those arrangements directly.

For the journal, list the actual systems behind editing, uploads and search. For the help service, ask who can deploy its scripts and who manages any connection back to the main application. The resulting review is more useful than labeling an entire proposal “isolated” because its hostname contains an extra word.

Review cookies and sign-in deliberately

MDN's cookie guide explains that omitting Domain produces host-only scope, while setting Domain can include subdomains. Path restricts when a cookie is sent but is not a security boundary. Same-site and same-origin are different concepts; a changed hostname does not make every cookie or sign-in question disappear.

Ask the application maintainer to document which service creates each login, where it is valid and what happens on sign-out. Do not broaden a cookie's Domain as an improvised way to make two platforms appear integrated. A supported shared login requires its own design, recovery and security review.

The hypothetical help center could be entirely public while its editing interface uses separate staff accounts. Readers then need no shared login at all. Keeping that distinction explicit can avoid unnecessary integration work. If readers do need protected support content, describe that requirement before selecting the address.

Make navigation and ownership visible

Choose labels that explain where a link leads. “Help center” is more useful than expecting visitors to infer a service transition from a small hostname change. Give direct arrivals a recognisable identity, useful navigation and an appropriate way back to the main site.

For the journal, preserve category paths and article relationships within its editorial structure. For the help service, decide where product documentation, account support and sales inquiries belong. Two teams should not publish contradictory answers simply because they own different systems.

Choose measurement scopes that match the arrangement

Search Console distinguishes Domain and URL-prefix properties. A Domain property covers its protocols and subdomains; a URL-prefix property is limited to its defined prefix. Choose coverage and access for the questions your team needs to answer. Adding a property is an observation arrangement, not a ranking boost.

Use the analytics and Search Console guide to distinguish search visibility from on-site behavior. A naming choice alone does not configure analytics, preserve consent or measure cross-service journeys correctly.

Treat an existing move as a separate project

A new section has no old public addresses to preserve. Moving an established one adds a different reader job: retain useful destinations, content and operational continuity. Do not turn a general preference for directories into an unplanned migration.

Before any move, inventory old addresses, important inbound routes and the systems that own them. Define the intended replacements, recovery window and responsible people. Use the safe WordPress migration workflow where applicable, and the canonical-address guide for the site's preferred public host. Those checks complement the topology decision; they are not supplied by it.

Accept the arrangement you can maintain

  1. Confirm the platform actually supports the chosen public address.
  2. Record publishing, account, deployment and recovery ownership.
  3. Review real origin, cookie and sign-in boundaries with the maintainer.
  4. Check direct entry, onward navigation and the return journey.
  5. Choose measurement scopes and access for the responsible teams.
  6. If moving existing content, approve a separate migration and recovery plan.

Use domain versus hosting when the discussion confuses a name with the service behind it. Prefer a structure you can explain and operate consistently. A tidy address is valuable when it serves that arrangement, not when it substitutes for one.