Top SEO Agency: revenue-driven SEO, AI SEO and GEO for businesses worldwide Chat on WhatsAppinfo@topseoagency.io
TOP SEOAGENCY .io Free SEO audit
Technical SEO · 12 min read

Subdomain vs subfolder for SEO: which should you use?

For most websites, a subfolder (example.com/blog) is the safer SEO choice because content shares the main site's authority and is simpler to manage. A subdomain (blog.example.com) makes sense when a section is truly separate, such as a web app, a help centre on another platform, or a different business.

Neeraj Kumar, founder of Top SEO AgencyBy Neeraj Kumar, Founder, Top SEO Agency·Updated 1 November 2026
CSS code on a computer monitor, illustrating subdomain vs subfolder website structure for SEO: Subdomain vs subfolder SEO by Top SEO Agency
How you structure URLs affects how search engines see your site.
On this page
  1. What is a subdomain?
  2. What is a subfolder?
  3. How Google treats subdomains and subfolders
  4. What Google has said, and what SEOs see in practice
  5. Subdomain vs subfolder vs separate domain
  6. Subdomain vs subfolder: side by side
  7. Pros and cons of using subfolders
  8. Pros and cons of using subdomains
  9. When to use a subfolder
  10. When a subdomain makes sense
  11. Subdomains, subfolders and international SEO
  12. How to move a subdomain into a subfolder without losing rankings
  13. Common scenarios and what we recommend
  14. How to serve a subfolder from another platform
  15. Tracking subdomains and subfolders correctly
  16. Link the two parts of your site together
  17. Monitoring after a move to a subfolder
  18. Subdomain vs subfolder myths
  19. A simple way to decide
  20. Effort and cost compared
  21. Subdomains for testing and staging
  22. Signs your subdomain is holding you back
  23. Common mistakes to avoid
  24. FAQs

Should your blog live at blog.example.com or example.com/blog? It sounds like a small technical choice, but the subdomain vs subfolder decision affects how authority flows, how easily search engines crawl your content and how much work your team takes on.

Google has said it can handle both. Yet many SEOs have seen traffic rise after moving content from a subdomain into a subfolder. This guide explains both options in simple terms, when each makes sense and how to move between them without losing rankings.

Get a written SEO plan

Senior specialists map your SEO and AI search priorities within 1 business day.

Get my SEO plan Chat on WhatsApp
Key takeaways
  • A subfolder keeps content under the main domain and is the default choice for blogs, services and local pages.
  • A subdomain can be treated more like a separate site, so it may need to earn its own links and trust.
  • Use subdomains for truly separate products, apps, platforms or audiences.
  • For international sites, subfolders with hreflang are often the simplest option to run well.
  • Any move between the two needs 301 redirects, updated internal links and close monitoring.

What is a subdomain?

A subdomain is a prefix added before your main domain name, such as shop.example.com or help.example.com. Technically, it can point to a different server and run completely different software from the main site.

Common uses include support centres, web applications, staging sites, job boards and stores that run on a separate platform.

https://help.example.com/reset-password
        ^^^^ subdomain

What is a subfolder?

A subfolder, also called a subdirectory, is a folder path after the main domain, such as example.com/blog or example.com/services/roofing. It is part of the same site, on the same host name, with the same domain level history.

Most websites use subfolders for almost everything: blog posts, service pages, product categories and location pages.

https://example.com/blog/reset-password-guide
                    ^^^^ subfolder

How Google treats subdomains and subfolders

Google representatives have said for years that its systems can crawl, index and rank both subdomains and subfolders, and that you should choose the structure that is easiest for you to maintain. In Search Console, a domain property covers all subdomains together, while URL prefix properties can track them separately.

In practice, there is a difference that matters for smaller sites. A subdomain can be treated more like its own site, with its own signals. A subfolder benefits directly from the links, history and internal linking of the main domain. Many published migrations from blog subdomains to subfolders have reported traffic gains, which is why most SEOs recommend subfolders unless there is a strong reason not to.

What Google has said, and what SEOs see in practice

Google's public position is that it can handle both setups. Its staff have said many times that its systems work out which parts of a site belong together, whether they live on a subdomain or in a subfolder, and that you should choose what is easiest for you to maintain.

Many SEO teams report a different pattern in practice. When blogs, guides or stores move from a subdomain into a subfolder, they often see the content rank better over the following months, because links, internal linking and topical signals now sit in one place. Neither view is wrong. Google can understand subdomains, but a subfolder makes it easier for your content to share strength with the main site without extra work. That is why, for most businesses, the subdomain vs subfolder SEO decision leans toward subfolders unless there is a clear reason not to.

Subdomain vs subfolder vs separate domain

SetupExampleShares authority with main siteBest for
Subfolderexample.com/blog/Yes, directlyBlogs, guides, services, most stores
Subdomainblog.example.comPartly, needs strong linkingApps, help centers on other platforms, separate audiences
Country code domainexample.deNo, built separatelyStrong local presence in one country
Separate brand domainexamplepro.comNoA distinct brand or product

Each step away from the main domain means more separate work on links, content and tracking.

Subdomain vs subfolder: side by side

FactorSubfolder (example.com/blog)Subdomain (blog.example.com)
Authority sharingShares main domain links and trust directlyMay need to build its own authority
Internal linkingNatural, one navigationOften separate menus and templates
SetupSame CMS and hostingCan run on any platform or server
AnalyticsOne property, simple reportingNeeds cross domain setup
CrawlingPart of one site structureMay be crawled as a separate host
Best forBlogs, services, products, locationsApps, help desks, separate brands

Pros and cons of using subfolders

Stronger shared authority

Every good link to your blog also strengthens the main site, and every link to the main site helps the blog. This compounding is the main reason subfolders often perform better.

Simpler management

One content system, one design, one analytics property and one set of technical settings mean fewer things to break.

Clearer topical signals

Related content in one place helps search engines understand your full expertise on a subject, which supports topic clusters and pillar pages.

The trade off: less technical freedom

If the section needs different software, a different server or a different team, fitting it into a subfolder can take more engineering work, such as a reverse proxy.

Pros and cons of using subdomains

Freedom to use other platforms

A help centre, community forum or storefront can run on a specialist tool without touching the main site.

Clean separation

Different teams can manage separate sections, and problems on one subdomain are less likely to affect the other.

Useful for separate audiences

A subdomain can work well for a distinct product line, investor site or app login area that does not need to rank alongside marketing pages.

The trade off: extra SEO effort

You may need to build links, internal links and content signals for the subdomain separately, and tracking users across both can be harder.

When to use a subfolder

Developer typing in an HTML editor while planning subfolder URL structure for SEO: Subdomain vs subfolder SEO by Top SEO Agency
  1. 1Your blog, guides and resources, which exist to support rankings for the whole site.
  2. 2Service and product pages that belong to the same business.
  3. 3Location pages for areas you serve.
  4. 4Landing pages for campaigns that should benefit from the main domain.
  5. 5Language or country versions when one team runs the whole site.

When a subdomain makes sense

  1. 1A web app or customer login area that has no need to rank.
  2. 2A help desk or knowledge base hosted on a third party platform.
  3. 3A separate brand, franchise or business with its own audience.
  4. 4Testing and staging environments, which should also be blocked from indexing.
  5. 5Very large sites where a section has its own team, technology and link profile.

Subdomains, subfolders and international SEO

International sites have a third option: a country code domain, such as example.de. Each choice has trade offs for cost, authority and local trust. Whatever you choose, use hreflang tags so search engines show the right language version to the right users.

StructureExampleMain benefitMain drawback
Country code domainexample.deStrong local signalEach domain builds authority from zero
Subdomainde.example.comEasy to host separatelyWeaker link to main domain
Subfolderexample.com/de/Shares authority, simple to runWeaker local signal than a ccTLD

For multi country plans, our international SEO service helps choose the right setup for each market.

How to move a subdomain into a subfolder without losing rankings

  1. 1Crawl the subdomain and export every URL, title and status code.
  2. 2Map each old URL to its new subfolder URL, one to one wherever possible.
  3. 3Set up the new pages on the main domain, keeping content, titles and headings the same at first.
  4. 4Add permanent 301 redirects from every old URL to its new home.
  5. 5Update all internal links, canonical tags, hreflang tags and XML sitemaps to the new URLs.
  6. 6Submit the new sitemap in Search Console and watch crawl errors, indexing and traffic for at least 8 weeks.
  7. 7Keep the redirects in place for the long term, not just a few months.

Moves like this go wrong when redirects are missed or chained. If you are planning one, our website migration SEO service handles URL mapping, redirects and post launch checks.

Common scenarios and what we recommend

Company blog

Use a subfolder such as /blog/. Blog content earns links and answers questions that support your service pages, so you want it to share strength with the main site.

Help center or documentation

A subfolder is ideal for SEO, but many help desk tools only offer a subdomain. If the docs answer real search questions, consider a reverse proxy or a tool that supports subfolders.

Web app or customer login

A subdomain such as app.example.com is fine. These pages usually should not rank anyway, so keep them out of the index with noindex or login walls.

Online store on another platform

If your main site and store run on different platforms, a subfolder through a reverse proxy is best for SEO, but a subdomain with strong cross linking is a workable option.

Careers and jobs

A subfolder helps job pages rank for brand plus job searches. Many applicant tracking systems use subdomains, which is acceptable if job listings link back to the main site.

Locations or franchises

Use subfolders such as /locations/toronto/ so each local page benefits from the main domain. Separate subdomains per branch spread authority thin.

How to serve a subfolder from another platform

Sometimes the tool you want only runs on its own server. A reverse proxy lets you show it at a subfolder of your main domain, so visitors and search engines see example.com/blog/ even though the content lives elsewhere. A developer sets this up on your web server or CDN.

# Nginx example: serve a hosted blog at /blog/
location /blog/ {
  proxy_pass https://yourblog.hostedplatform.com/;
  proxy_set_header Host yourblog.hostedplatform.com;
  proxy_set_header X-Forwarded-Host example.com;
}

After setting this up, check that canonical tags, sitemaps and internal links all use the subfolder URLs, not the platform's own address. Our technical SEO team handles this kind of setup.

Tracking subdomains and subfolders correctly

Search Console

A Domain property covers every subdomain and subfolder together. Add separate URL prefix properties if you want to see a subdomain or folder on its own.

Google Analytics 4

GA4 tracks subdomains of the same domain in one property by default when the same tag is used. Cross domain settings are needed only for fully separate domains.

Sitemaps

Each subdomain needs its own sitemap. A subfolder can be part of the main sitemap or have its own sitemap listed in the main index.

Link the two parts of your site together

If you do use a subdomain, strong linking between it and the main site helps search engines and visitors treat them as one brand.

  1. 1Add the subdomain to the main navigation or footer where it makes sense.
  2. 2Link from subdomain articles to relevant service or product pages on the main site.
  3. 3Link from main site pages to helpful subdomain content.
  4. 4Use the same logo, brand name and design so visitors know they are in the same place.
  5. 5Use consistent organization schema across both.

Monitoring after a move to a subfolder

  1. 1Check that every old subdomain URL returns a 301 redirect to its matching subfolder URL.
  2. 2Submit the new sitemap and keep the old one available for a few weeks so Google finds the redirects.
  3. 3Watch the Page indexing report for new errors.
  4. 4Compare clicks and rankings for moved pages each week for the first two months.
  5. 5Update internal links, profiles and important backlinks to the new URLs.
  6. 6Keep redirects in place for at least a year, ideally permanently.

Expect some movement for a few weeks. Most well planned moves settle within one to three months.

Subdomain vs subfolder myths

MythWhat is actually true
Subdomains are always bad for SEOThey work, but usually need more effort to rank as well
Subfolders automatically fix rankingsThey help content share signals, but quality still decides rankings
You must move every subdomainApp, login and staging subdomains are fine where they are
A move has no riskMissing redirects can cause big drops; plan carefully

A simple way to decide

  1. 1Ask whether the content should rank in search. If not, such as a login area, a subdomain is fine.
  2. 2If it should rank, ask whether it supports your main services or products. If yes, lean toward a subfolder.
  3. 3Check whether your platform can serve the content in a subfolder, either directly or through a reverse proxy.
  4. 4If it cannot, compare the cost of switching platforms with the extra SEO effort a subdomain needs.
  5. 5Consider the audience. A truly separate audience or brand can justify a subdomain or separate domain.
  6. 6Write down the decision and the reason, so future changes do not undo it by accident.

Effort and cost compared

The choice is not only about rankings. It changes how much work your team does every month.

TaskSubfolderSubdomain
Link buildingBenefits the whole siteOften needs its own links
Search ConsoleOne domain property covers itExtra properties are useful for detail
SitemapsPart of the main siteSeparate sitemap
Design and navigationShared by defaultMust be kept in sync
Technical setupSimple on one platform, harder with mixed platformsSimple to launch on any platform

For most small and mid size businesses, the lower ongoing effort of a subfolder outweighs the extra setup. If you are unsure, our SEO consulting team can review your setup.

Subdomains for testing and staging

Staging sites often live on subdomains such as staging.example.com. That is fine, but they must be kept out of search. Protect staging with a password, or at least a noindex tag and robots.txt rule, so unfinished copies of your site never compete with the live version. Check for indexed staging pages with a site:staging.example.com search every few months.

Signs your subdomain is holding you back

Great content, weak rankings

Your subdomain articles are better than competitors' but rank lower, while similar pages on competitors' main domains do well.

Few links point to it

Backlink tools show the subdomain has far fewer referring domains than the main site, and it rarely appears in brand searches.

Visitors drop off between the two

Analytics show people reading the subdomain content rarely visit service or product pages on the main site.

If you see two or more of these, test moving a small group of pages into a subfolder with redirects and compare the results after two to three months.

Common mistakes to avoid

Leaving staging subdomains open

Test sites that get indexed can create duplicate content. Protect them with a password or noindex.

Splitting thin content across subdomains

Spreading a small amount of content across several hosts makes each one weaker. Group related content together.

Forgetting cross domain tracking

Without proper analytics setup, users moving between a subdomain and the main site look like new visitors, which skews reports.

Moving without redirects

Changing structure without 301 redirects throws away the links and rankings old URLs had earned.

FAQ

Subdomain vs subfolder for SEO FAQs

Is a subfolder better than a subdomain for SEO?

+

For most sites, yes. A subfolder shares authority with the main domain and is simpler to manage, which usually makes ranking easier.

Does Google treat subdomains as separate websites?

+

Google says it can handle both, but in practice subdomains often need to build their own signals, while subfolders benefit directly from the main site.

Should my blog be on a subdomain?

+

Usually not. A blog at example.com/blog helps the whole site rank. Use a subdomain only if the blog must run on a separate platform you cannot integrate.

Do subdomains share domain authority?

+

They share some brand and trust signals, but links to a subdomain do not help the main site as directly as links to a subfolder.

Is it safe to move a blog from a subdomain to a subfolder?

+

Yes, if you map every URL, use 301 redirects, update internal links and monitor results. Rankings may dip briefly before recovering.

Which is better for international SEO, subdomain or subfolder?

+

Subfolders are often easiest because they share authority. Use hreflang tags with any structure you choose.

Can I track a subdomain in Google Search Console?

+

Yes. A domain property covers all subdomains together, or you can add a URL prefix property for one subdomain.

Should a staging site be on a subdomain?

+

It can be, but block it from search engines with a password or noindex so it is not indexed as duplicate content.

Is a blog better in a subfolder or a subdomain for SEO?

+

In most cases a subfolder is better, because the blog's links and content support the main site directly. Use a subdomain only if a platform limit makes a subfolder impractical.

Does a subdomain have its own domain authority?

+

Third party metrics like Domain Authority usually score the root domain, but Google evaluates pages and sites with its own systems. In practice, a subdomain often needs its own links and content to perform well.

Can I use a reverse proxy for SEO?

+

Yes. A reverse proxy lets content from another platform appear in a subfolder of your domain. Make sure canonicals, sitemaps and links use the subfolder URLs.

Should location pages be on subdomains?

+

Usually not. Subfolders such as /locations/city/ keep all location pages on the main domain, which helps each one rank with less separate effort.

How long does it take to recover after moving a subdomain to a subfolder?

+

With full 301 redirects, most sites settle within one to three months, and many see gains after that. Large sites can take longer.

Do subdomains hurt local SEO?

+

Not directly, but a location page on a subdomain may need more links and signals to rank than the same page in a subfolder.

Do subdomains split SEO traffic?

+

They can. Search engines may treat a subdomain somewhat separately, so its links and content do less to support the main site than a subfolder would. Strong internal linking reduces the effect.

Is it better to use a subfolder for a new store section?

+

Usually yes. Keeping the store at example.com/shop/ lets product and category pages benefit from the main site's links and brand searches from day one.

Can I test a subfolder move before moving everything?

+

Yes. Move a small, representative group of pages with 301 redirects, track them for two to three months, then decide on the rest based on the results.

Does using www count as a subdomain?

+

Technically yes, www is a subdomain, but search engines treat www and the bare domain as the same site when you redirect one to the other consistently.

Get started

Get your free SEO audit

Within 1 business day a senior Top SEO Agency strategist sends you a recorded walkthrough of your website, with a prioritized fix list you can act on straight away.

⚙Technical healthIndexing, speed and crawl errors
⌕Keyword gapsTerms your competitors own
✦AI visibilityChatGPT, Gemini, Perplexity
★★★★★4.9/5 from 120+ brands
Tell us about your business
No sales pitch. No obligation. Reply within 1 business day.
Talk to an SEO expert