Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Subdirectory SEO: why your blog belongs in a subfolder

Updated · 6 min read

Short answer Google says it can rank a blog in either place, so pick by what's easier to run. For most small businesses that's a subfolder like yoursite.com/blog: one site, one set of settings, one name in search. A subdomain like blog.yoursite.com is a separate site to Google's crawler, so it only makes sense when the blog runs on different software.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

Subfolder or subdomain: the short rule

Put your blog in a subfolder unless it has to run on separate software.

Subfolder (subdirectory)Subdomain
Addressyoursite.com/blog/post-nameblog.yoursite.com/post-name
What it isA section of your existing siteA second site under your domain name
SetupUsually built in to your website platformA separate install, plus DNS settings
To Google's crawlerSame site as your service pagesA separate site
Best forAlmost every small business blogA blog stuck on a different platform, or a separate brand

A subdirectory is just a folder in your web address, the part after the first slash. A subdomain is the word in front of your domain name, like the "blog" in blog.yoursite.com. Your main site is often itself on the "www" subdomain.

Does a subdomain hurt SEO? What Google says

Google doesn't rank one above the other. Its SEO Starter Guide puts it this way:

"From a business point of view, do whatever makes sense for your business." (Google Search Central: SEO Starter Guide)

The same guide adds that folders can be easier to manage, while subdomains sometimes make sense "depending on your site's topic or industry."

You'll read that a subfolder "passes authority" to your main site and a subdomain doesn't. Google has published no such rule. What Google does document is that a subdomain is a separate site in several of its systems:

Google systemHow it treats a subdomain
Crawling"Google's crawling infrastructure defines a site as a unique hostname," with separate crawl budgets (Google Search Central: crawl budget)
robots.txt"A robots.txt on a subdomain is only valid for that subdomain" (Google Search Central: robots.txt)
Site name in resultsOne site name per site, "where a site is defined by the domain or subdomain"; folders can't have their own (Google Search Central: site names)

So a subdomain blog isn't penalized. It's a second site you have to set up, check and maintain on its own, and its links to your service pages are links from another site rather than from inside your own. That extra work, not a ranking rule, is the case for the subfolder.

Crawl budget, how many pages Google will crawl on a site in a given time, only matters for very big sites. Google's guide is for sites with 10,000+ pages that change daily or 1 million+ pages (same crawl budget page). A small business blog won't hit it either way.

When does a subdomain make sense?

  • The blog runs on a different platform that can't sit in a folder of your site, and moving it isn't worth it right now.
  • It's really a separate business or brand, with its own audience and name.
  • It's an app or tool, like a customer portal or booking system, not content you want found in search.

If none of these fit, use the folder.

How do I put a WordPress blog in a subfolder?

How depends on what your main site runs on.

Your main site runs onWhat to do
WordPressMake a page called "Blog" and set it as the posts page (steps below)
Plain HTML or another system, on hosting you controlInstall WordPress in a /blog folder on the same hosting
Wix, Squarespace or ShopifyUse the platform's own blog instead of WordPress

If your whole site is WordPress

  1. In the dashboard, go to Pages > Add New and create two pages: "Home" and "Blog" (WordPress docs: static front page).
  2. Go to Settings > Reading. Under "Your homepage displays", choose "A static page". Set Homepage to Home and Posts page to Blog. Save. Your post list now lives at yoursite.com/blog/.
  3. Go to Settings > Permalinks. "Post name" puts posts at yoursite.com/post-name. To put them under the folder too, choose "Custom structure" and enter /blog/%postname%/ (WordPress docs: Permalinks screen). Click Save Changes.

Do step 3 on a new blog. On a blog that already has posts, changing permalinks changes every post's address, so every old address then needs a redirect (see the next section).

If your site isn't WordPress but you control the hosting

WordPress's install guide covers this case: create a "blog" folder on your server, upload WordPress into it, then run the installer at yoursite.com/blog/wp-admin/install.php (WordPress Developer: How to install WordPress).

If your site is on Wix, Squarespace or Shopify

Use the blog the platform already has. It lives on your own domain, so there's nothing to connect. Shopify, for example, starts every store with a blog "called News" (Shopify Help Center: Adding a blog). Pointing a folder of these platforms at an outside WordPress blog needs a reverse proxy, a server setup that forwards one folder's traffic to another server. Most small sites don't need it. For choosing a platform, see Wix, Squarespace or WordPress for SEO.

Moving a blog from a subdomain to a subfolder

  1. Copy each post to its new folder address. Keep the same title and text.
  2. Redirect every old address to its new one with a permanent (301) redirect. Google says 301 and other permanent redirects "don't cause a loss in PageRank" (Google Search Central: site moves).
  3. Update your own links in menus, posts and your Google Business Profile so they point straight at the new addresses.
  4. Expect some movement. Rankings may swing while Google recrawls. For a medium site, Google says it can take "a few weeks or more" to show the new addresses in place of the old ones (same page).

Don't delete the old subdomain until the redirects work. A move without redirects can lose the traffic the old addresses earned; see traffic dropped after a website redesign.

What should the post addresses look like?

Short and readable. Google recommends "readable words rather than long ID numbers" and hyphens rather than underscores between words (Google Search Central: URL structure). yoursite.com/blog/how-often-to-service-a-furnace says what the post is; yoursite.com/blog/?p=482 doesn't.

Example

Illustrative cases with invented numbers.

A plumber on WordPress

The site is WordPress, but posts show up at random addresses with dates in them. The owner sets a Blog page as the posts page and, because there are only 8 posts, switches permalinks to /blog/%postname%/ and adds 8 redirects. All posts now sit at yoursite.com/blog/.

An accountant with a subdomain blog

A firm's 40 articles live on blog.firmname.com, on a separate blogging service, while the main site is on Squarespace. The firm copies the posts into Squarespace's blog, sets 40 redirects from the old addresses, and points the subdomain's DNS to a simple redirect. Traffic dips for about a month, then settles at the new addresses.

A clinic that keeps a subdomain

A physiotherapy clinic runs its patient booking system at book.clinicname.ca. That's an app, not content, so it stays on the subdomain. The clinic's articles on injuries go in clinicname.ca/blog.

FAQ

Is a subfolder better than a subdomain for SEO?

Google says to do what makes sense for your business and doesn't rank one above the other. A subfolder is usually simpler for a small business because it's one site to manage.

Does a subdomain blog need its own robots.txt?

Yes. Google says a robots.txt file on a subdomain applies only to that subdomain, and the one on your main site doesn't cover it.

Will moving my blog to a subfolder lose my rankings?

Not if every old address redirects permanently to its new one; Google says 301 redirects don't lose PageRank. Expect a few weeks of movement while Google swaps the addresses.

Should my blog be at /blog or /news?

Either works; Google doesn't need a particular word. Pick the one your visitors expect and don't change it later.

Different for you?

Keep learning

NextSite structure visualization: map your website's pagesFree and paid tools that draw a map of your website's pages, how to make one in 15 minutes, and what the picture reveals about buried or missing pages.

Do it yourself

Crawlability checklist: make every page reachable by GoogleA crawlability checklist for a small business site: find orphan pages, robots.txt blocks, broken links, redirect chains and server errors, with free tools.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Google Search Central: SEO Starter Guide
  2. Google Search Central: Crawl budget management for large sites
  3. Google Search Central: How to write and submit a robots.txt file
  4. Google Search Central: Site names in Google Search
  5. Google Search Central: URL structure best practices
  6. Google Search Central: Site moves with URL changes
  7. WordPress Documentation: Create a static front page
  8. WordPress Documentation: Settings Permalinks screen
  9. WordPress Developer: How to install WordPress
  10. Shopify Help Center: Adding a blog