Subdomain vs Subfolder: Which Is Better for SEO?
Home  /  Blog

Subdomain vs Subfolder: Which Is Better for SEO?

The Short Answer: Google says both can rank, so neither carries a built-in penalty. For most Malaysian SMEs, a subfolder (yourbrand.com.my/blog/) is still the safer choice, because all content, links and reporting stay on one hostname with one set of settings. Use a subdomain only when the section is a genuinely separate product, platform, audience or team.

The subdomain vs subfolder question usually lands on a business owner’s desk at an awkward moment. The developer wants to put the new blog, shop or Bahasa Malaysia version on its own subdomain because it is quicker to set up. The marketing side has read that subfolders are “better for SEO”. Both have a point, and the wrong choice is expensive to undo later.

This guide from IZI Digital Marketing sets the two options side by side using Google’s own documentation, read on 5 October 2026. It covers how Google’s tools treat each one, what each adds to your workload, which sections belong where, and how to move a subdomain into a subfolder without losing rankings.

About to launch a blog, shop or language version?

Tell us what the new section is for and where it will be hosted. We will tell you which URL structure fits before anything is built. Ask for a URL structure check

The short video below is Google’s own answer, from John Mueller on the Google Search Central channel. It is worth two minutes, because the rest of this article explains what his answer leaves out.

Subdomain or Subfolder, Which Is Better for SEO?

Source video: Google Search Central on YouTube

PART 1 · DIAGNOSE

What Is the Difference Between a Subdomain and a Subfolder?

IN BRIEFA subdomain sits in front of your domain name (blog.yourbrand.com.my) and counts as its own hostname. A subfolder, also called a subdirectory, sits after it (yourbrand.com.my/blog/) and shares the main hostname. That one difference decides how crawling, settings and reporting work, as our technical SEO basics guide explains.

Think of the domain as a building. A subfolder is another room inside it, reached through the same front door. A subdomain is a separate block on the same land: same address, but its own entrance, its own keys and its own meter.

Term Example What it means
Root domain yourbrand.com.my The name you register and renew
Subdomain shop.yourbrand.com.my A separate hostname, set up with a DNS record, often on different hosting
Subfolder yourbrand.com.my/shop/ A path on the main hostname, usually inside the same website

The domain itself is a separate decision. If you are still choosing between a .com and a .my address, settle that first with our guide to choosing a domain name in Malaysia. Everything below applies to either.

Bottom Line: A subfolder is part of your existing site. A subdomain is a second site that happens to share your brand name.

BENCHMARK BRIEFING 1 OF 4

Subdomain vs Subfolder: How Google’s Tools Treat Each

IN BRIEFGoogle’s documentation treats a subdomain as a separate site in four places: crawl budget, robots.txt, site names and the Change of Address tool. A subfolder inherits all four from the main hostname. Those rows matter more than any ranking debate, and they are the first thing an SEO audit checklist should check.

We pulled each rule from Google Search Central and Google’s help centres into one table. Read the highlighted rows first; they are where a subdomain behaves like a second website:

How Google’s Tools Treat a Subdomain vs a Subfolder
How Google’s tools treat subdomains and subfolders, compiled from Google documentation checked 5 October 2026. Crawl budget: a subdomain is a separate site with its own crawl budget; a subfolder shares the main hostname’s budget. robots.txt: a subdomain needs its own file because the main file is not valid for other subdomains; a subfolder is covered by the main file. Site name in Search results: a subdomain can have its own site name; a subfolder cannot. Change of Address tool: usable for a move from one domain or subdomain to another; not usable for path-level moves. Search Console: a Domain property covers both subdomains and subpaths; a URL-prefix property covers only its exact prefix. Google Analytics: subdomains need a shared cookie domain or cross-domain setup to avoid self-referrals; a subfolder needs nothing extra. Language targeting: Google does not use language subdomains to decide the target audience; hreflang is needed for either structure. Compiled by IZI Digital Marketing.
Google rule Subdomain Subfolder
Crawl budget Separate site, separate budget Shares the main hostname’s budget
robots.txt Needs its own file Covered by the main file
Own site name in results Supported Not supported
Change of Address tool Usable for domain or subdomain moves Not usable for path-level moves
Search Console In a Domain property; own URL-prefix property if wanted In a Domain property; own URL-prefix property if wanted
Google Analytics Shared cookie domain or cross-domain setup needed Nothing extra
Language targeting Not read from the subdomain; needs hreflang Not read from the folder; needs hreflang

Compiled by IZI Digital Marketing from Google’s crawl budget guide, robots.txt specification, site names documentation, Change of Address tool help, Search Console property help, Analytics cross-domain help and localised versions guide, checked 5 October 2026.

The crawl budget row needs context. Google’s crawl budget guide says www.example.com and code.example.com “are treated as separate sites and have separate crawl budgets”. But the same guide is written for sites with 1 million or more pages, or 10,000 or more pages that change daily. For a typical SME site, crawl budget is not the deciding factor. The extra settings and the split reporting are.

Bottom Line: In Google’s own tools, a subdomain is set up, crawled and measured as its own site. A subfolder simply inherits what the main site already has.

THE RANKING QUESTION

Does Google Rank Subdomains Differently From Subfolders?

IN BRIEFOfficially, no. Google’s position since its 2017 video is that both rank and the choice should follow your setup. The practical difference is concentration: a subfolder keeps links, content and history on one site, while a subdomain has to build some of that on its own. Our SEO services page explains how that authority is built.

In the video above, Google advises picking the structure that suits your server and your business, not a supposed ranking edge. Many SEO practitioners disagree from experience, and both camps can be right at once. Here is why:

  • No penalty exists either way. Google does not mark a page down for living on a subdomain.
  • Links still pull together better on one site. When your blog earns a mention from a trade association, a subfolder post sits on the same site as your service pages, and internal links pass that value straight to them.
  • A new subdomain starts with less to show. It has its own crawl pattern, its own settings and, in practice, often a thinner link profile of its own.
  • Setup mistakes are the real risk. Forgotten robots.txt rules, missing analytics tags and orphaned pages hurt subdomains far more often than any algorithm does.

There is also a policy angle. Google’s spam policies on site reputation abuse cover third-party content placed on an established site mainly to borrow its ranking signals, and they warn against using “subdomains, subdirectories, or sites” to keep breaking the rules. Renting out a section of your site is risky in either structure.

Consultant’s Note: When owners ask us whether a subdomain will “hurt SEO”, the honest answer is that the subdomain rarely does. What hurts is that nobody owns it. The developer set it up, marketing never added it to Search Console, and two years later it holds dozens of blog posts that link nowhere useful.
Bottom Line: Google does not reward one structure over the other. A subfolder simply makes it easier for your content to help the pages that bring in enquiries.

BENCHMARK BRIEFING 2 OF 4

Subdomain or Subfolder for an English, BM and Chinese Site?

IN BRIEFGoogle lists four ways to structure language or country versions and says subdirectories have the lowest maintenance. For a Malaysian site serving one country in several languages, subfolders such as /ms/ and /zh/ usually fit best. The full setup is in our guide to multilingual websites in Malaysia.

Google’s page on managing multi-regional and multilingual sites compares the options. We grouped Google’s pros and cons, then added how each looks for a Malaysian business. Compare the maintenance column:

Google’s Four URL Structures for Language and Country Versions
Google’s locale URL structures, from Google Search Central checked 5 October 2026, with Malaysian examples added by IZI Digital Marketing. Country domain such as yourbrand.my or yourbrand.sg: pros are clear geotargeting, server location irrelevant and easy separation; cons are cost, more infrastructure and one country per domain. Subdomain such as ms.yourbrand.com: pros are easy setup, different server locations and easy separation; con is that users may not recognise targeting from the URL. Subdirectory such as yourbrand.com/ms/: pros are easy setup and low maintenance on the same host; cons are users may not recognise targeting, a single server location and harder separation. URL parameters such as yourbrand.com?lang=ms: not recommended by Google.
Structure Malaysian example Google’s pros Google’s cons Maintenance
Country domain yourbrand.my, yourbrand.sg Clear geotargeting; easy separation Expensive; more infrastructure; one country each High
Subdomain ms.yourbrand.com Easy setup; separate servers possible Targeting unclear from URL alone Medium
Subdirectory yourbrand.com/ms/ Easy setup; low maintenance, same host One server location; harder to separate Low
URL parameter yourbrand.com?lang=ms None listed Not recommended by Google Avoid

Aggregated by IZI Digital Marketing from Google Search Central’s multi-regional and multilingual sites guide, checked 5 October 2026. Malaysian examples and the maintenance column are IZI Digital Marketing’s reading of Google’s pros and cons.

Most Malaysian businesses serve one country in two or three languages, not several countries. Google’s cons for subdirectories, a single server location and harder separation, matter little in that case. Either way, Google’s localised versions guide says it does not use language subdomains to work out the audience, so hreflang tags are needed whichever structure you pick.

Bottom Line: One country, several languages: use subfolders. Several countries with separate teams or servers: subdomains or country domains start to earn their extra upkeep.

PART 2 · DESIGN

When Is a Subdomain the Right Choice?

IN BRIEFA subdomain earns its place when a section runs on a different platform, serves a different audience or needs its own identity. Think app logins, help centres, hosted job boards or a separate brand. Content meant to win enquiries belongs in a subfolder, where it supports your website design and service pages.

Use the box below section by section. Many sites end up with both: marketing content in subfolders, tools and platforms on subdomains.

DECISION BOX · SUBDOMAIN OR SUBFOLDER?

Section you are adding Better fit Why
Blog or resource centre Subfolder Its links and traffic should support service pages
BM or Chinese version, Malaysia only Subfolder Lowest upkeep for one country
Online shop on the same platform Subfolder Product and brand pages strengthen each other
Shop on a separate hosted platform Subdomain The platform usually can only map a hostname
Customer portal, app login, help desk Subdomain Different software and security; little to rank
Short-term campaign landing pages Subfolder (noindex if thin) Simpler tracking for ad conversions
Separate brand or regional business Subdomain or own domain Can carry its own site name in results

Verdict: If the section exists to win search traffic and enquiries, put it in a subfolder. If it exists to run software or serve existing customers, a subdomain is fine.

The platform row is the one that forces most decisions. Marketplace stores, for example, live on Shopee’s or Lazada’s own domain and cannot sit in your subfolder at all, so weigh their costs in our Shopee and Lazada seller fees comparison. On your own site, choosing a CMS that can host the blog and shop together, as covered in WordPress vs Webflow vs custom builds, removes the need for a subdomain in the first place.

Campaign pages deserve a word too. When ads send people to a subdomain, conversions can split across two hostnames unless tracking is set up for both. Smart Bidding then learns from incomplete data, a problem our manual CPC vs Smart Bidding comparison explains, and one our Demand Gen vs Performance Max guide also flags for landing pages.

Bottom Line: Choose by the section’s job. Ranking and lead content goes in subfolders; software and separate businesses can go on subdomains.

BENCHMARK BRIEFING 3 OF 4

What Extra Setup Does a Subdomain Need?

IN BRIEFAdding a blog as a subfolder of an existing WordPress site creates almost no new technical items. Adding it as a subdomain on separate software creates around eight, from a DNS record to its own robots.txt and analytics checks. Our comparison of GA4 setup service vs DIY covers the tracking part.

We counted the separate items each option adds when a Malaysian SME launches a blog beside an existing site. Compare the bar lengths; each item is something someone must set up and keep working:

New Technical Items Created by Adding a Blog (Illustrative)
Illustrative model by IZI Digital Marketing counting the new technical items created when a blog is added to an existing website. Subfolder on the same WordPress install: 0 new hostnames, 0 DNS records, 0 SSL certificates beyond the existing one, 0 robots.txt files, 0 crawl budget pools, 0 analytics cookie changes, 0 CMS installs, 1 sitemap section; total 1. Subdomain on separate software: 1 hostname, 1 DNS record, 1 SSL certificate or wildcard coverage, 1 robots.txt file, 1 crawl budget pool, 1 analytics cookie domain or cross-domain check, 1 CMS install with its own updates, 1 sitemap; total 8. Built on Google’s robots.txt, crawl budget and Analytics documentation.
Setup New items to set up and maintain Count
Subfolder, same WordPress install

Blog section added to the existing sitemap

1
Subdomain, separate software

Hostname, DNS record, SSL cover, robots.txt, crawl budget pool, analytics cookie check, CMS install and updates, sitemap

8

Illustrative model by IZI Digital Marketing, built on Google’s robots.txt specification, crawl budget guide and Analytics cross-domain help, checked 5 October 2026. Item counts are a model, not a survey; bar widths scaled to 8 items.

Eight items is not a lot for a developer. The cost comes later, when the subdomain’s software misses updates, its robots.txt still blocks Google from the staging days, or its sessions show up as referrals in your reports. Google’s cross-domain measurement help says self-referrals can appear when users move between subdomains with different cookie domains. Each extra item is one more thing to check in every audit.

A separate install also means separate theme and plugin choices. If the blog would run on a cheap theme nobody maintains, our look at free vs premium WordPress themes shows what that trade-off costs.

Bottom Line: A subdomain is not hard to set up. It is easy to forget, and forgotten settings are where search visibility quietly leaks.

PART 3 · DEPLOY

Should You Move a Blog From a Subdomain to a Subfolder?

IN BRIEFMove it when the subdomain holds content that should support your service pages and you can redirect every URL one to one. Leave it when it is small, low-traffic or due for a rebuild anyway. Any move is a site migration, so plan it with our website migration guide.

Moving changes every URL in that section, and Google’s site move guide says to expect temporary ranking fluctuation. Weigh it against these signs:

  • Move if the blog earns links or traffic that never seem to lift your service pages.
  • Move if the subdomain runs old software that nobody updates and you are rebuilding the main site anyway.
  • Wait if the subdomain is a key lead source in a peak season; schedule the move for a quieter month.
  • Skip it if the section is a portal or help desk that was never meant to rank.
Bottom Line: A move pays off when the content matters to your rankings. It is wasted effort for sections that were never meant to be found in search.

Not sure your subdomain is worth moving?

We can check its traffic, links and indexed pages first, then tell you whether a move would help or just add risk. See who should carry out technical SEO work

BENCHMARK BRIEFING 4 OF 4

How Long Does a Subdomain-to-Subfolder Move Take to Settle?

IN BRIEFGoogle says a medium-sized site can take a few weeks or more before new URLs replace old ones in results, and redirects should stay for at least a year. The Change of Address tool cannot help, because the destination is a path. Track the recovery with the metrics in our SEO audit checklist.

We set Google’s timing guidance on one timeline. Read the last row before you plan the budget; redirects are a long-term commitment:

Subdomain-to-Subfolder Move: Google’s Timing Guidance
Timeline for moving a blog from a subdomain to a subfolder, compiled from Google documentation checked 5 October 2026. Launch day: permanent 301 or 308 redirects go live from each old URL to its new URL; Google says permanent redirects do not cause a loss in PageRank. First weeks: expect temporary ranking fluctuation. A few weeks or more: for medium-sized sites, Google gradually shows the new URLs instead of the old ones. 180 days: the Change of Address window applies only to domain or subdomain moves and cannot be used for a path-level destination, so this move relies on redirects alone. At least 1 year: Google says keep redirects for as long as possible, generally at least 1 year.
When What happens What to do
Launch day 301 or 308 redirects go live; no PageRank loss from permanent redirects Test every old URL lands on its match
First weeks Temporary ranking fluctuation Watch crawl errors, not daily positions
A few weeks or more New URLs gradually replace old ones (medium-sized sites) Compare clicks to the same weeks before the move
180 days Change of Address window, not available for path-level moves Rely on redirects and updated internal links
1 year and beyond Redirects still needed Keep them at least 1 year, ideally for good

Compiled by IZI Digital Marketing from Google’s site move with URL changes guide and Change of Address tool help, checked 5 October 2026.

The Change of Address row surprises many owners. Google’s Change of Address help says the tool works only at domain level and cannot move properties at the path level. So when blog.yourbrand.com.my becomes yourbrand.com.my/blog/, clean one-to-one redirects carry the whole move.

Bottom Line: Budget a few weeks of wobble and a year of redirects. Anyone promising an instant, risk-free move has not read Google’s guidance.

PART 4 · DRIVE

How to Move a Subdomain to a Subfolder Safely

IN BRIEFMap every old URL to one new URL, rebuild the content in the subfolder, switch on permanent redirects, update internal links and sitemaps, then monitor Search Console for weeks. Skipping the URL map is the most common cause of lost rankings. Our content marketing for leads guide shows what to do with the blog once it has moved.

Steps to move blog.yourbrand.com.my to yourbrand.com.my/blog/

  1. Export every URL. List all indexed subdomain pages from Search Console and your sitemap, with their clicks and links.
  2. Build a one-to-one map. Give each old URL one new subfolder URL. Merge or drop thin posts only with a clear target.
  3. Copy content and metadata. Move titles, descriptions, images and schema exactly, so only the address changes.
  4. Switch on 301 redirects. Redirect at server level from each old URL to its mapped new URL, never all to the homepage.
  5. Update links and sitemaps. Change internal links, the XML sitemap, hreflang tags and canonical tags to the new URLs.
  6. Monitor and keep the redirects. Check Search Console for crawl errors weekly and keep redirects at least a year.

If the move happens alongside a full redesign, our web design process guide shows where the URL map fits in the build schedule.

Bottom Line: The URL map is the move. Get it right, and the redirects, sitemaps and monitoring are routine work.

THE VERDICT

Subdomain vs Subfolder: The Decision Rule

For a Malaysian SME weighing subdomain vs subfolder, three questions settle it:

  1. Is the section meant to win search traffic and enquiries? If yes, use a subfolder so its links and visits support your service pages.
  2. Does it have to run on separate software or servers? If yes, a subdomain is acceptable. Set up its robots.txt, analytics and Search Console coverage on day one.
  3. Is it a separate business, brand or country? If yes, a subdomain or its own domain lets it carry its own site name and identity.

Structure helps rankings only when the content inside it is worth finding. If you want the structure and the content planned together, see how our SEO consulting starts with a diagnosis before any URL is changed.

FAQ

Frequently Asked Questions

1. Is a subdomain or subfolder better for SEO?

A subfolder is usually the safer choice. It depends on the section’s job: Google says both can rank, but a subfolder keeps content, links and settings on one site, so blog posts help your service pages directly.

2. Does Google treat a subdomain as a separate website?

Partly, yes. It depends on which system you mean. Google’s crawl budget guide treats each hostname as a separate site, and robots.txt rules do not carry across subdomains. A subdomain can also have its own site name in results.

3. Should my blog be on a subdomain?

Usually not. It depends on your platform: if your website software can host the blog, put it in a /blog/ subfolder. A subdomain makes sense only when the blog must run on separate software you cannot integrate.

4. Will moving my blog from a subdomain to a subfolder lose rankings?

Expect a temporary wobble, not a permanent loss. It depends on the redirects: with one-to-one 301 redirects, Google says permanent redirects do not lose PageRank, though medium-sized sites can take a few weeks or more to settle.

5. Should a BM or Chinese version use a subdomain?

For a Malaysia-only business, a subfolder is usually better. It depends on whether versions need separate servers or teams. Google lists subdirectories as low-maintenance, and either structure needs hreflang tags to show which language each page serves.

6. Does a subdomain need its own Search Console property?

Not if you use a Domain property. It depends on how you verified the site: a Domain property covers all subdomains and paths, while a URL-prefix property covers only its exact prefix, so a subdomain would need its own.

Subdomain, subfolder or a move: want a clear answer for your site?

Book a free Blueprint consultation. We will review your current structure, platforms and search data with you, and decide together where each section of your site should live.

Book my free consultation

Have a campaign in mind? Let's talk.