All posts
Platform migrations

Subdomain to Subfolder Migration: Moving Your Blog for SEO

Subdomain to subfolder migration for your blog: when the move is worth it, how to redirect it, and proxy setups when the blog and site run on different platforms.

By Mehdi Hassan6 min read

The short answer

A subdomain to subfolder migration moves your blog from blog.example.com to example.com/blog. It's worth doing when the blog is a core acquisition channel and you want its links and content to support the main site directly. Redirect every post page to page, and use a reverse proxy if the blog stays on a different platform.

Key takeaways

  • Google can rank both setups. The subfolder case is about simpler linking, tracking and maintenance.
  • Move the blog only if it earns or will earn real traffic. A dormant blog doesn't justify the risk.
  • Every post needs a 301 from the subdomain to its new subfolder URL, served by the subdomain's host.
  • If the blog can't move platforms, a reverse proxy can serve it under /blog on the main domain.
  • Change of Address doesn't apply. This is a page-level redirect job.

Part of Website Migration SEO Checklist: Keep Your Rankings When You Switch Platforms

Should you move your blog from a subdomain to a subfolder?

Move your blog from a subdomain to a subfolder if the blog is a real acquisition channel and you want it treated as part of one site. Google has said it can handle both setups, so this isn't a magic ranking switch. The practical gains are one domain to build links to, one Search Console property, easier internal linking and simpler analytics.

If the blog barely gets traffic, the move adds risk for little return. Put the effort into content first. When you do move, treat it like any other migration and follow our website migration SEO checklist, because every blog URL changes.

What's the difference between a blog subdomain vs subfolder?

A blog subdomain is a separate host, such as blog.example.com, while a subfolder lives on the main host, such as example.com/blog. Search engines can treat a subdomain more like a separate site, which is why many teams prefer the subfolder for content meant to support the main domain.

Factor

Subdomain

Subfolder

URL

blog.example.com/post

example.com/blog/post

Platform freedom

Any platform, separate DNS record

Same platform, or a reverse proxy

Links and authority

Links split across two hosts

Links point to one host

Internal linking

Cross-host links

Same-site links in nav and content

Analytics and Search Console

Often two setups

One setup

Setup effort

Low

Low on one platform, higher with a proxy

The same trade-off shows up with international sites, which our guide to subdirectory vs subdomain vs ccTLD covers. For a startup blog, the subfolder usually wins unless the blog is run by a separate team on a platform that can't be proxied.

How do you move a blog to a subfolder on the same platform?

If the blog can move onto the main site's platform, the job is a content migration plus redirects. This is the simplest route, and it's what we recommend when the main site runs on Webflow, Framer or Next.js with a capable CMS.

  1. Benchmark the subdomain

    Export Search Console data for the subdomain property, crawl every post, and list posts with backlinks.

  2. Import the posts

    Move posts into the main site's CMS with the same slugs, so blog.example.com/slug becomes example.com/blog/slug.

  3. Rebuild metadata

    Carry over titles, descriptions, canonical URLs, Open Graph tags, alt text and author data.

  4. Redirect from the subdomain

    Set the subdomain to return a 301 for every path, to the matching subfolder path. This rule lives wherever the subdomain is hosted.

  5. Update internal links

    Replace links to the subdomain in nav, footers, posts and emails with the new paths.

  6. Test and monitor

    Crawl the old post list, check for one-hop 301s, and watch both properties in Search Console.

Moving content between CMSs has its own pitfalls with rich text and images. Our guide to headless CMS migration covers the export and import side.

How do you serve a blog in a subfolder when it runs on a different platform?

You serve a blog in a subfolder from a different platform with a reverse proxy. The proxy sits in front of the main domain, sends requests for /blog to the blog's platform, and sends everything else to the main site. Visitors and crawlers only ever see example.com/blog.

  • Next.js rewrites: if the main site runs on Next.js, a rewrite rule can fetch /blog paths from the blog host. It's the cleanest option when you control the code.
  • CDN workers or rules: a Cloudflare Worker or similar edge function can route /blog to one origin and the rest to another, in front of any platform.
  • Host-level rewrites: some hosts, including Vercel, support rewrites to external origins in their config.
  • Platform-native proxies: some builders support being served under a subdirectory only on certain plans, or not at all. Check your platform's current docs before you plan around it.
What a proxy has to get right

A reverse proxy is more than a routing rule. The blog platform has to know it lives at example.com/blog, or it will generate links, canonicals and sitemaps with its own domain. Assets such as CSS and images need paths that work under /blog. Cookies, forms and preview modes may behave differently across origins.

Test the raw HTML of a proxied post: the canonical should be example.com/blog/slug, internal links should stay on example.com, and the sitemap should list subfolder URLs. If any of them still reference the subdomain, fix the blog platform's base URL setting before launch.

What does the subfolder SEO benefit actually look like?

The subfolder SEO benefit is consolidation, not a ranking bonus. Links earned by blog posts point at the same host as your product pages, internal links run both ways without crossing hosts, and you measure everything in one place.

That makes it easier to do what drives results: link from posts to the pages that convert, and from product pages to supporting content. Our guide to bottom-of-funnel SEO for SaaS explains which pages to build first, and our blog setup guide for startup websites covers templates and categories once the blog lives in the subfolder.

Does a subdomain to subfolder migration need Change of Address?

No. The Change of Address tool is for moving a whole site to a new domain, not for moving a section from a subdomain into a folder. A subdomain to subfolder move relies on page-level 301s, an updated sitemap on the main domain, and time for Google to recrawl.

Keep the subdomain's Search Console property so you can watch its impressions fall as the subfolder's rise. If they don't trade places, check redirects first using our guide to traffic drops after a website migration. Our domain change SEO guide covers the case where Change of Address does apply.

Frequently asked questions

Will moving my blog to a subfolder improve rankings?
Not automatically. Google says it can rank content on subdomains and subfolders. The benefit comes from consolidation: links point at one host, internal linking is simpler and measurement is unified. Teams that also use the move to link posts to product pages tend to get more out of it than teams that only change the URL.
Can I keep using WordPress for my blog under a subfolder?
Yes, with a reverse proxy that routes /blog requests to the WordPress host. WordPress must be configured to use the subfolder as its site address, or it will output links and canonicals on the old host. The alternative is moving posts into your main site's CMS, which removes the proxy but means a content migration.
What happens to the blog's backlinks after the move?
Backlinks keep working through the 301 redirects from the subdomain to the subfolder, and their value passes to the new URLs. For your strongest links, it's worth asking the linking sites to update the URL directly. Never remove the subdomain redirects later, since that breaks every link that still points at it.
Should the help center or docs move to a subfolder too?
Not necessarily. Docs and help centers often run on specialist platforms and serve existing customers more than search traffic. Moving them is worth it when they rank for queries that bring in new buyers. Otherwise a subdomain is fine, and the effort is better spent on the marketing blog.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Website, $8,000.

A multi-page marketing site, written and designed by us, developed in Next.js and animated. $8,000, one-time, up to 6 pages. Book a free 30-minute call to see if it fits.

Schedule Call