On this page
- What is a subdomain?
- What is a subfolder?
- How Google treats subdomains and subfolders
- What Google has said, and what SEOs see in practice
- Subdomain vs subfolder vs separate domain
- Subdomain vs subfolder: side by side
- Pros and cons of using subfolders
- Pros and cons of using subdomains
- When to use a subfolder
- When a subdomain makes sense
- Subdomains, subfolders and international SEO
- How to move a subdomain into a subfolder without losing rankings
- Common scenarios and what we recommend
- How to serve a subfolder from another platform
- Tracking subdomains and subfolders correctly
- Link the two parts of your site together
- Monitoring after a move to a subfolder
- Subdomain vs subfolder myths
- A simple way to decide
- Effort and cost compared
- Subdomains for testing and staging
- Signs your subdomain is holding you back
- Common mistakes to avoid
- 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.
Senior specialists map your SEO and AI search priorities within 1 business day.
Get my SEO plan Chat on WhatsApp- 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
^^^^ subdomainWhat 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
^^^^ subfolderHow 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
| Setup | Example | Shares authority with main site | Best for |
|---|---|---|---|
| Subfolder | example.com/blog/ | Yes, directly | Blogs, guides, services, most stores |
| Subdomain | blog.example.com | Partly, needs strong linking | Apps, help centers on other platforms, separate audiences |
| Country code domain | example.de | No, built separately | Strong local presence in one country |
| Separate brand domain | examplepro.com | No | A 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
| Factor | Subfolder (example.com/blog) | Subdomain (blog.example.com) |
|---|---|---|
| Authority sharing | Shares main domain links and trust directly | May need to build its own authority |
| Internal linking | Natural, one navigation | Often separate menus and templates |
| Setup | Same CMS and hosting | Can run on any platform or server |
| Analytics | One property, simple reporting | Needs cross domain setup |
| Crawling | Part of one site structure | May be crawled as a separate host |
| Best for | Blogs, services, products, locations | Apps, 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

- 1Your blog, guides and resources, which exist to support rankings for the whole site.
- 2Service and product pages that belong to the same business.
- 3Location pages for areas you serve.
- 4Landing pages for campaigns that should benefit from the main domain.
- 5Language or country versions when one team runs the whole site.
When a subdomain makes sense
- 1A web app or customer login area that has no need to rank.
- 2A help desk or knowledge base hosted on a third party platform.
- 3A separate brand, franchise or business with its own audience.
- 4Testing and staging environments, which should also be blocked from indexing.
- 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.
| Structure | Example | Main benefit | Main drawback |
|---|---|---|---|
| Country code domain | example.de | Strong local signal | Each domain builds authority from zero |
| Subdomain | de.example.com | Easy to host separately | Weaker link to main domain |
| Subfolder | example.com/de/ | Shares authority, simple to run | Weaker 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
- 1Crawl the subdomain and export every URL, title and status code.
- 2Map each old URL to its new subfolder URL, one to one wherever possible.
- 3Set up the new pages on the main domain, keeping content, titles and headings the same at first.
- 4Add permanent 301 redirects from every old URL to its new home.
- 5Update all internal links, canonical tags, hreflang tags and XML sitemaps to the new URLs.
- 6Submit the new sitemap in Search Console and watch crawl errors, indexing and traffic for at least 8 weeks.
- 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.
- 1Add the subdomain to the main navigation or footer where it makes sense.
- 2Link from subdomain articles to relevant service or product pages on the main site.
- 3Link from main site pages to helpful subdomain content.
- 4Use the same logo, brand name and design so visitors know they are in the same place.
- 5Use consistent organization schema across both.
Monitoring after a move to a subfolder
- 1Check that every old subdomain URL returns a 301 redirect to its matching subfolder URL.
- 2Submit the new sitemap and keep the old one available for a few weeks so Google finds the redirects.
- 3Watch the Page indexing report for new errors.
- 4Compare clicks and rankings for moved pages each week for the first two months.
- 5Update internal links, profiles and important backlinks to the new URLs.
- 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
| Myth | What is actually true |
|---|---|
| Subdomains are always bad for SEO | They work, but usually need more effort to rank as well |
| Subfolders automatically fix rankings | They help content share signals, but quality still decides rankings |
| You must move every subdomain | App, login and staging subdomains are fine where they are |
| A move has no risk | Missing redirects can cause big drops; plan carefully |
A simple way to decide
- 1Ask whether the content should rank in search. If not, such as a login area, a subdomain is fine.
- 2If it should rank, ask whether it supports your main services or products. If yes, lean toward a subfolder.
- 3Check whether your platform can serve the content in a subfolder, either directly or through a reverse proxy.
- 4If it cannot, compare the cost of switching platforms with the extra SEO effort a subdomain needs.
- 5Consider the audience. A truly separate audience or brand can justify a subdomain or separate domain.
- 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.
| Task | Subfolder | Subdomain |
|---|---|---|
| Link building | Benefits the whole site | Often needs its own links |
| Search Console | One domain property covers it | Extra properties are useful for detail |
| Sitemaps | Part of the main site | Separate sitemap |
| Design and navigation | Shared by default | Must be kept in sync |
| Technical setup | Simple on one platform, harder with mixed platforms | Simple 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.

