The subdomain vs subdirectory SEO debate shows up every time a business with several service areas tries to decide how to structure its city pages. This guide is for anyone about to build pages for each city or region they serve and trying to decide between a structure like yourcompany.com/chicago and one like chicago.yourcompany.com. The short version: for the vast majority of local and multi-location businesses, a subdirectory is the safer default, and a subdomain is worth considering only in a handful of specific situations.
Subdomain vs Subdirectory: The Basic Difference
A subdirectory, sometimes called a subfolder, is a path added after your main domain, like yourcompany.com/chicago or yourcompany.com/locations/chicago. It lives directly on your existing domain and inherits its setup automatically. A subdomain is a separate prefix attached before your domain, like chicago.yourcompany.com, and technically functions closer to a distinct site that happens to share your brand name and much of your hosting setup.
Both structures can display identical content to a visitor. The difference that matters for SEO is not what someone sees on the page, it is how Google's crawling and indexing systems treat the two structurally, and how ranking signals like backlinks and authority flow, or do not flow, between your main site and the page in question.
A quick way to keep the two straight:
- Subdirectory example: yourcompany.com/chicago, part of the same site, same domain, same navigation.
- Subdomain example: chicago.yourcompany.com, technically a distinct host, even though it shares your brand and often your hosting account.
Why Google Treats Them Differently
Google has gotten better over the years at understanding that subdomains usually belong to the same overall business as their root domain, but subdirectories still carry a real practical advantage: they share the same URL, the same crawl budget, roughly how much attention Googlebot gives your site, and the same accumulated authority as the rest of your site by default, with no extra configuration required.
A subdomain can end up being treated as a more separate entity, particularly if it has thin content, a different technical setup, or fewer links pointing to it than your main domain. In practice, that can leave a subdomain fighting for rankings almost on its own instead of automatically inheriting the trust your main site has already built over time. It is not that subdomains are penalized. It is that they do not automatically get the same head start a subdirectory gets for free.
A useful analogy is a branch office versus a franchise. A subdirectory behaves like a branch operated directly by the parent company, automatically carrying the parent brand's reputation. A subdomain behaves more like a franchise location: it can carry the same name and look the same to a customer, but from a technical standpoint it can be evaluated somewhat on its own. Google's systems do not treat subdomains as an entirely separate business the way a franchise agreement legally separates two companies, but the analogy captures why authority does not flow between a subdomain and its root domain as automatically as it does within a single subdirectory structure.
Why Subdirectory Is the Safer Default for City Pages
For most local and multi-location businesses, a subdirectory structure is the safer choice for a few practical reasons.
- Shared authority: every city page benefits from the trust your homepage, your best content, and your existing backlinks have already built, without needing separate link building for each city.
- Simpler internal linking: your navigation, footer, and related-content links can point to city pages using the same relative link structure as the rest of your site, with no separate configuration per city.
- Easier maintenance: one sitemap, one analytics property, and one set of technical SEO settings cover every city page, instead of needing to be replicated and monitored separately for each subdomain.
None of these advantages are exotic or hard to set up. They are simply the default behavior you get by keeping city pages on your main domain, which is exactly why subdirectory has become the standard recommendation for local and multi-location SEO.
The Narrow Cases Where a Subdomain Makes Sense
A subdomain is rarely the right call for local city pages, but it is not always wrong. It can make sense when a city or regional operation is run as a genuinely separate business unit, its own team, its own branding, sometimes even its own ownership structure, closer to a franchise than a simple location page on a shared site. It can also make sense for a large multi-country operation where each subdomain represents an entirely different language or a legally distinct local entity, which is a different situation from one company simply listing the cities it serves.
A real-world version of this is a franchise brand where each location is independently owned and operated. Corporate might run the main brand site on the root domain, while a franchisee in a specific city runs a separately owned website on a subdomain or even a completely separate domain, because that location is, legally and financially, a different business. That is a meaningfully different situation from a single company with employees and trucks working in five different cities, which is the more common setup for most local service businesses reading this.
A more familiar example of legitimate subdomain use is a careers or support subdomain, like careers.yourcompany.com, where the content and purpose are genuinely distinct from the main site. City pages for a single local business rarely meet that bar. Outside of cases like these, the added complexity of a subdomain rarely pays for itself for a typical local service business trying to rank in a handful of nearby cities.
What This Looks Like in Practice
A typical local business with several service areas is usually best served by a structure like yourcompany.com/locations/chicago and yourcompany.com/locations/denver, all sitting under one navigation menu and one sitemap. Each page should have genuinely different, useful content, its own service details, its own testimonials or local proof, its own contact information, rather than a copy-pasted template with only the city name swapped out. Google's own guidance treats thin, duplicated location pages as low value content regardless of whether they live on a subdirectory or a subdomain, so the structure decision does not excuse weak content either way.
Structured data helps here too. Our free schema generator builds the LocalBusiness markup for each page automatically, so you do not need to hand-write JSON-LD for every city you add, and each page clearly signals to Google exactly which area it covers.
Getting Your City Pages Set Up Right
Once your structure is decided, the actual ranking work is the same regardless of subdomain or subdirectory: unique content per page, consistent name, address, and phone number details, internal links between related city pages, and enough evidence that each page genuinely serves that area rather than existing only to capture a search term. For more detail on writing city and service-area pages that hold up to that standard, see our guide on service-area content.
If you are migrating existing city pages from subdomains into a subdirectory structure, or the other way around, treat it as a real migration project, not a quick file move. Set up redirects from every old URL to its new equivalent, update your internal links and navigation to point to the new URLs directly instead of relying on redirects long term, update your sitemap, and expect a short adjustment period while Google reprocesses the change. Skipping the redirects, or redirecting everything to one generic page instead of the matching new city page, is the most common way businesses lose rankings during a switch like this.
Our free local SEO plan can help you prioritize which cities to build out first based on where you already have the strongest signals, rather than guessing. Once new pages are live, run our free Map Rank Check for each city to see whether the structure and content changes are actually moving your rankings, instead of assuming they are working.
Frequently asked questions
Does switching from subdomain to subdirectory guarantee a ranking boost?
No, and be cautious of anyone who promises that. A structure change can help consolidate authority onto one set of URLs, but it also involves redirects and reindexing that carry short-term risk. Results depend on your specific site, your competition, and how the migration is executed.
Will I lose rankings if I move city pages from a subdomain to a subdirectory?
A well-executed migration with proper redirects is designed to preserve most of your existing rankings, though some temporary fluctuation while Google reprocesses the new URLs is normal. Poorly planned migrations, missing redirects or broken internal links, are what actually cause lasting ranking loss, not the structure change itself.
Can I mix subdirectories and subdomains on the same site?
Technically yes, but it adds unnecessary complexity for most local businesses. It usually only makes sense when different sections genuinely function as separate operations, like a distinct app or a separately branded division, rather than a set of city pages for the same business.
Does a subdirectory city page need its own history to rank?
No, that is the main advantage. A subdirectory page inherits ranking signals from your whole domain by default, so a brand-new city page can rank faster than it would on a freshly created subdomain with no history of its own.
How many city pages should a local business create?
Only as many as you can give genuinely unique, useful content: real service details, local proof, and accurate contact information. A handful of well-built city pages will consistently outperform dozens of thin, near-duplicate pages built just to cover more search terms.