Subdomain so với Subdirectory
Subdomains và subdirectories là functionally tương đương cho SEO. Google decides theo site cách treat mỗi — và hầu hết migration "wins" là confounded.
Ngôn ngữ
1 tín hiệu bằng chứng trên trang này
- Công cụ trực tuyến liên quanSEO Migration Planner & Validator
MỘT subdomain (blog.ví dụ.com) là một tách biệt hostname; một subdirectory (ví dụ.com/blog/) là một path on đó giống nhau hostname. Google có không blanket preference và decides theo site liệu một subdomain là treated as part of trang web của bạn, dựa trên integration các tín hiệu như liên kết nội bộ. Đó case studies cho thấy big 'wins' từ moving subdomain→subdirectory là gần như luôn confounded — tốt hơn liên kết nội bộ, nội dung pruning, hoặc một CMS upgrade rode along với đó URL thay đổi. My advice: không migrate cho URL structure alone; đó risk thường outweighs đó upside. Subdirectories làm có real, concrete operational advantages (một Search Console thuộc tính, một analytics setup, site names trong tìm kiếm), nhưng những là convenience, không một xếp hạng edge.
Evidence for this claim Search Console Domain properties aggregate all subdomains and protocols, while URL-prefix properties can isolate a particular subdomain or path prefix. Scope: Current Search Console property behavior; not a ranking preference. Confidence: high · Verified: Google Search Console: Add a property Evidence for this claim Moving content between hosts or paths changes URLs and should use permanent redirects and updated canonical/internal signals. Scope: Current Google site-move operations, distinct from any inherent subdomain ranking claim. Confidence: high · Verified: Google Search Central: Site moves with URL changesTL;DR — MỘT subdomain là
blog.example.com(một prefix trước của bạn domain). MỘT subdirectory (hoặc subfolder) làexample.com/blog/(một path sau điều này). Bạn’ll hear đó subdirectories là “better for SEO.” (bản dịch) «tốt hơn cho SEO.» họ là không, inherently — Google says either có thể hoạt động. Subdirectories là thường easier để chạy as một application và analytics phạm vi, so trừ khi bạn có một real reason để split điều out, giữ mọi thứ together là đó simpler lựa chọn.
điều gì là đó khác biệt?
Điều này xuất hiện xuống để nơi đó extra word goes relative để của bạn domain:
- Subdomain — đó word xuất hiện trước của bạn domain, joined by một dot:
blog.example.com,shop.example.com,support.example.com. Technically này là một tách biệt address, so điều này có thể trực tiếp on một khác nhau máy chủ hoặc chạy một khác nhau hệ thống (CMS). - Subdirectory (cũng called một subfolder) — đó word xuất hiện sau của bạn domain,
joined by một slash:
example.com/blog/,example.com/shop/. đây là luôn part of đó giống nhau address as của bạn main site.
Làm điều này quan trọng cho SEO?
Ở đây đó honest câu trả lời hầu hết các bài viết sẽ không cho bạn: không as nhiều as mọi người claim. Google có đã nói cho năm đó điều này có không preference. Cả hai có thể hoạt động fine.
Đó reason bạn see headlines như “we moved to a subfolder and traffic jumped 40%” (bản dịch) «we moved để một subfolder và traffic jumped 40%» là đó những moves gần như không bao giờ happen on của họ own. Khi một team migrates một blog, they thường cũng improve liên kết nội bộ, delete yếu các trang, và upgrade đó nền tảng — all đồng thời. Những thay đổi là điều gì move traffic. Đó URL structure mostly went along cho đó ride. (I dig vào này trong đó Advanced tab.)
So mà nên bạn pick?
MỘT đơn giản rule of thumb:
- Dùng một subdirectory cho điều closely tied để của bạn main site — một blog, một help center, tài liệu. Điều này giữ routing, analytics, và nội dung management dưới một roof. MỘT Search Console Domain thuộc tính có thể aggregate subdomains cũng, so thuộc tính count không phải đó deciding factor.
- Dùng một subdomain khi điều gì đó là genuinely tách biệt — một khác nhau sản phẩm, một khác nhau team hoặc máy chủ, hoặc country-cụ thể versions of trang web của bạn. có không có gì sai với một subdomain; điều này chỉ takes một little hơn setup để manage.
Đó điều hầu hết mọi người nhận sai
không migrate một hoạt động subdomain để một subdirectory chỉ vì ai đó told bạn subfolders xếp hạng tốt hơn. Nếu của bạn subdomain blog là đang làm well và là well-linked từ của bạn main site, moving điều này là risk với little reward. Migrations luôn carry đó chance of losing thứ hạng during đó transition. Muốn đó đầy đủ reasoning, đó case studies, và điều gì Google và Bing thực ra chẳng hạn? Chuyển để đó Advanced tab.
Evidence for this claim Search Console Domain properties aggregate all subdomains and protocols, while URL-prefix properties can isolate a particular subdomain or path prefix. Scope: Current Search Console property behavior; not a ranking preference. Confidence: high · Verified: Google Search Console: Add a property Evidence for this claim Moving content between hosts or paths changes URLs and should use permanent redirects and updated canonical/internal signals. Scope: Current Google site-move operations, distinct from any inherent subdomain ranking claim. Confidence: high · Verified: Google Search Central: Site moves with URL changesTL;DR — Subdomains và subdirectories là cả hai viable cho tìm kiếm, nhưng they là operationally khác nhau. Google evaluates theo site liệu một subdomain là treated as part of trang web của bạn hoặc as một tách biệt entity — đó deciding factor là integration (liên kết nội bộ, consistent UX, related nội dung), không đó dot-so với-slash. Đó case studies cho thấy big gains từ subdomain→subdirectory moves là gần như luôn confounded: tốt hơn liên kết nội bộ, nội dung pruning, một CMS upgrade, hoặc analytics thay đổi rode along. My position: không migrate cho URL structure alone — đó risk thường outweighs đó upside. Subdirectories có thể carry operational advantages (shared routing, analytics, và xuất bản các hệ thống), nhưng những là convenience wins, không một xếp hạng edge. Bing concern là subdomain abuse (leasing, PBNs), không legitimate subdomain dùng. Và theo Google November 2024 site-reputation-abuse policy, moving nội dung giữa structures không cách sửa một spam violation.
Điều gì they thực ra là
MỘT subdomain là một prefix trước đó root domain, separated by một dot —
blog.example.com. đây là technically một tách biệt hostname, so điều này có thể point tại một
khác nhau máy chủ, chạy một khác nhau CMS, và là owned by một khác nhau team. MỘT
subdirectory (subfolder) là một path segment sau đó domain, separated by một
slash — example.com/blog/. đây là luôn đó giống nhau hostname, và so đó giống nhau “site”
từ một crawling và analytics standpoint. có một third option cho international
hoạt động — một ccTLD như example.de — mà là luôn treated as một tách biệt site.
Điều gì Google thực ra says (và điều đó có nghĩa là gì)
Google tài liệu chính thức là blunt: “You should choose whatever is easiest for you to organize and manage. From an indexing and ranking perspective, Google doesn’t have a preference.” (bản dịch) «Bạn nên chọn whatever là easiest cho bạn để organize và manage. Từ an lập chỉ mục và xếp hạng perspective, Google không có một preference.» đó là đó headline — không blanket advantage either way.
Đó nuance là hơn quan trọng hơn đó headline. John Mueller có đã nói, “In general, we see these the same,” (bản dịch) «Nhìn chung, we see những đó giống nhau,» nhưng đã thêm đó he’d “personally try to keep things together as much as possible.” (bản dịch) «personally try để giữ điều together as nhiều as có thể.» Đó key word là personally — đó là một preference cho operational simplicity, không một statement đó subdirectories xếp hạng tốt hơn.
Đó deepest point Mueller có đã làm là đó có không blanket rule tại all: “sometimes that can include sub-domains, sometimes that doesn’t include sub-domains. Sometimes that includes sub-directories, and sometimes that doesn’t include specific sub-directories.” (bản dịch) «sometimes đó có thể bao gồm sub-domains, sometimes đó không bao gồm sub-domains. Sometimes đó bao gồm sub-directories, và sometimes đó không bao gồm cụ thể sub-directories.» Nói cách khác, Google decides theo site liệu một subdomain (hoặc ngay cả một subdirectory) là treated as part of đó main site. Đó các tín hiệu điều này dùng là integration các tín hiệu: liên kết nội bộ giữa đó section và đó root, consistent branding và UX, thematically related nội dung, và một coherent sitemap structure.
Gary Illyes confirmed đó flip side tại Pubcon 2023: subdirectories có thể là treated as tách biệt các trang cũng — “It’s not common on the English web but it is in other languages.” (bản dịch) «đây là không phổ biến on đó English web nhưng điều này là trong other languages.» So đó structural lựa chọn không đó lever mọi người think điều này là; đó integration là.
My position: đó “wins” là thường confounded
I wrote đó contrarian take on này cho Ahrefs trong March 2021, và I’ll restate điều này ở đây vì điều này vẫn holds. Đó belief đó subdirectories là SEO-superior rests on case studies đó move một section từ một subdomain để một subfolder và báo cáo một traffic jump. Đó vấn đề là đó những migrations gần như không bao giờ thay đổi chỉ đó URL.
Khi nhóm làm những moves, they typically cũng:
- Improve liên kết nội bộ — đó section nhận properly woven vào đó main nav và contextual links cho đó đầu tiên time.
- Prune hoặc rewrite thin nội dung as part of đó migration.
- Upgrade đó CMS hoặc nền tảng, mà thường improves speed, templates, và crawlability.
- Cách sửa analytics, so traffic đó đã là luôn có finally measured dưới một thuộc tính (cross-domain/cross-host tracking gaps là phổ biến on subdomains).
Bất kỳ một of những có thể move traffic. Thuộc tính đó toàn bộ gain để đó dot-becoming-một-slash và bạn đã confused correlation với causation. As I put điều này trong đó bài viết: thay đổi introduce risk, so think twice trước thay đổi từ một subdomain để một subdirectory nếu đó chỉ reason bạn là đang làm điều này là cho SEO.
Đó không có nghĩa là không case nghiên cứu isolates đó structure. Pink Cake Box là đó sạch nhất một I know of — Archive.org kiểm tra cho thấy không design hoặc nội dung thay đổi accompanied đó move, và organic sessions rose khoảng 40%. Đó reverse kiểm thử, IWantMyName moving subdirectory→subdomain và dropping về 47%, adds weight. I take những seriously. Nhưng họ là đó exceptions đó nhận sạch việc đo lường; đó HotPads/HubSpot-style cases mọi người cites đã có simultaneous thay đổi, và đó mọi người ai ran them (John Doherty on HotPads) có đã nói as nhiều. Correlation studies — đó “11.8M results” (bản dịch) «11,8M kết quả» và similar — là correlational by nature; các trang đó dùng subdirectories cũng tend để là lớn hơn và hơn SEO-mature.
Real kỹ thuật differences (những không phải myths)
Set đó xếp hạng debate aside — ở đó là concrete operational differences, và they thường favor subdirectories cho closely-related nội dung:
- Search Console. MỘT subdomain cần tách biệt verification và của nó own thuộc tính. (MỘT GSC Domain thuộc tính covers all subdomains tại khi, mà softens này.) Mueller: “We do have to learn how to crawl them separately but for the most part that’s just a formality for the first few days.” (bản dịch) «We làm có để learn cách crawl them riêng nhưng cho đó hầu hết part đó là chỉ một formality cho đó đầu tiên một vài days.»
- Crawling. Với một subdirectory, Googlebot đã understands đây là đó giống nhau máy chủ — không re-learning period. Mueller được diễn đạt đó subdirectory advantage as: “this helps us with crawling since we understand that everything is on the same server and can crawl it in a similar way.” (bản dịch) «này helps us với crawling since we understand đó mọi thứ là on đó giống nhau máy chủ và có thể crawl điều này trong một similar way.»
- Analytics. Một GA4 thuộc tính theo mặc định; không cross-domain/host configuration để capture đó section traffic.
- Site names trong kết quả tìm kiếm. Google hỗ trợ site names cho domains và subdomains nhưng không cho subdirectories — một real, được ghi lại functional khác biệt.
- Được ưu tiên Sources / thuộc tính-cấp độ tools. Some Search Console surfaces operate tại domain và subdomain cấp độ, không subdirectory cấp độ.
- Giá trị liên kết. Backlink để một subdirectory là unambiguously dưới đó root domain. Cho một subdomain, liệu đó equity “luồng” để đó root phụ thuộc vào liệu Google xử lý đó subdomain as part of trang web của bạn — đó giống nhau theo-site evaluation as mọi thứ khác.
Khi một subdomain genuinely làm hợp lý
Subdomains không một mistake. Reach cho một khi:
- đây là một genuinely tách biệt sản phẩm hoặc service —
app.example.com,status.example.com,community.example.com. - Bạn cần kỹ thuật separation — một khác nhau CMS, một khác nhau stack, một khác nhau team, hoặc khác nhau infrastructure đó là far easier để chạy on của nó own hostname.
- International targeting — Google lists subdomains (
de.example.com), subdirectories (example.com/de/), và ccTLDs (example.de) as equally hợp lệ cho geotargeting. Subdirectories là operationally simplest; ccTLDs gửi đó strongest geo-tín hiệu; subdomains sit trong đó middle. - Lớn enterprises với multiple business units, nơi tách biệt GSC properties theo team là một feature, không một bug.
Điều gì Bing cares về
Bing không prescribe một structure cho legitimate các trang. Trong “Some Thoughts on Website Boundaries” (bản dịch) «Some Thoughts on Website Boundaries» (Frederic Dubut và đó Bing Quản trị viên web Tools team, November 2019), Bing concern là inorganic site structure — PBNs, doorways, và subdomain/subfolder leasing, nơi bên thứ ba nội dung là hung off một subdomain với minimal liên kết nội bộ cụ thể để leak site-cấp độ các tín hiệu để an unrelated party. Bing blunt warning: “If you offer free hosting on your subdomains and 95% of your subdomains are flagged as spam, Bing will expand penalties to the entire domain, even if the root website itself is not spam.” (bản dịch) «Nếu bạn offer free hosting on của bạn subdomains và 95% of của bạn subdomains là flagged as spam, Bing sẽ expand penalties để đó entire domain, ngay cả khi đó root website itself không phải spam.» Cho một thông thường business dùng của nó own subdomain, none of này áp dụng.
Này connects để Google site reputation abuse policy cập nhật (November 2024), mà là worth knowing: “Moving content to a subdirectory or subdomain within the same site’s domain name doesn’t resolve the underlying issue and may be viewed as an attempt to circumvent spam policy.” (bản dịch) «Moving nội dung để một subdirectory hoặc subdomain trong đó giống nhau site domain name không resolve đó underlying vấn đề và có thể là viewed as an attempt để circumvent spam policy.» So bạn không thể structure của bạn way out of một parasite-SEO vấn đề.
Đó reverse-proxy workaround
Nếu bạn là technically locked vào một subdomain — WordPress.com, một headless CMS, hoặc một
tài liệu/help nền tảng bạn không thể self-host — bạn không có để migrate để nhận một
subdirectory URL. Bạn có thể dùng một reverse proxy (Cloudflare Workers là đó phổ biến
route) để serve blog.example.com as example.com/blog/ từ đó crawler và
người dùng perspective. Đó URL mọi người sees là đó subdirectory path; đó backend vẫn giữ
on đó subdomain install. Cloudflare documents này pattern trong một hai-part Workers
series. đây là một legitimate, widely-dùng technique — chỉ là sure đó proxied nội dung
là genuinely yours, không leased (see đó abuse policies trên).
Nên bạn migrate? Cách think về đó risk
My decision rule:
- Stay put nếu của bạn subdomain là established, xếp hạng, well-linked từ đó root, và integrated. Migrating purely cho URL structure là risk với little reward.
- Migrate khi bạn là đang làm một lớn hơn nền tảng migration anyway, hoặc đó subdomain có real kỹ thuật/performance các vấn đề — i.e., khi đó URL thay đổi là bundled với các cách sửa đó thực ra move đó needle.
- Nếu bạn làm migrate, cách sửa đó confounders đầu tiên so bạn có thể đọc đó kết quả
cleanly: liên kết nội bộ, nội dung quality, các chuyển hướng (
301s), và analytics. Thì đó structure thay đổi là đó chỉ variable left. - Follow Google chính thức site-move workflow — map old URLs để new ones, chuyển hướng mỗi một of them, cập nhật liên kết nội bộ và sitemaps, verify đó new thuộc tính trong Search Console, và thì monitor một representative set of URLs rather hơn assuming đó move went cleanly.
Expect 2–4 weeks of fluctuation as Google xử lý các chuyển hướng, với recovery typically bên trong 4–6 weeks khi đó migration là đã xong correctly.
Nơi này fits
Này là một piece of cách bạn organize một site — siblings trong này cluster cover URL structure conventions, kiến trúc trang web và crawl depth, và faceted navigation, và đó international angle overlaps với hreflang và ccTLD decisions trong SEO quốc tế. Đó throughline là đó giống nhau: structure là một way để organize và manage nội dung, không một xếp hạng lever trong của nó own right.
AI summary
MỘT condensed take on đó Advanced version:
- Subdomain =
blog.example.com(tách biệt hostname). Subdirectory =example.com/blog/(path on đó giống nhau hostname). ccTLD =example.de(luôn một tách biệt site). - Google có không blanket preference. Tài liệu chính thức: chọn điều gì là easiest để manage; “Google doesn’t have a preference” (bản dịch) «Google không có một preference» cho lập chỉ mục/xếp hạng.
- Treatment là theo-site. Mueller: sometimes subdomains là treated as part of đó site, sometimes không — và đó giống nhau cho subdirectories. Đó deciding factor là integration (liên kết nội bộ, consistent UX, related nội dung), không dot-so với-slash. Illyes confirmed subdirectories có thể là treated riêng cũng.
- Patrick position: migration “wins” là thường confounded — tốt hơn liên kết nội bộ, nội dung pruning, CMS upgrades, hoặc fixed analytics ride along với đó URL thay đổi. không migrate cho URL structure alone; đó risk outweighs đó upside.
- Sạch nhất case studies: Pink Cake Box (+~40%, không other thay đổi) và đó IWantMyName reverse move (−~47%). Hầu hết other cited cases đã có simultaneous thay đổi.
- Real (non-xếp hạng) differences: subdomains cần tách biệt GSC verification; site names trong tìm kiếm hoạt động cho subdomains nhưng không subdirectories; subdirectories crawl không có một re-learning period và dùng một analytics thuộc tính.
- Bing targets subdomain abuse (leasing, PBNs), không legitimate subdomain dùng.
- Nov 2024 site reputation abuse: moving nội dung giữa subdomain và subdirectory làm không cách sửa một spam violation.
- Reverse proxy (Cloudflare Workers) có thể serve một subdomain as một subdirectory URL nếu bạn là technically locked vào một subdomain.
Tài liệu chính thức
Chính-nguồn tài liệu từ đó các công cụ tìm kiếm.
- URL structure thực hành tốt nhất — Google hướng dẫn on URLs; khuyến nghị ccTLDs hoặc subdirectories cho geotargeting, không stated preference cho domestic nội dung.
- Managing multi-regional và multilingual các trang — đó three tương đương URL options cho international targeting (ccTLD, subdomain, subdirectory) với của họ pros và cons.
- Site names trong Google Search — site names là supported cho domains và subdomains nhưng không subdirectories.
- Consolidate duplicate URLs — canonicalization các phương thức (các chuyển hướng,
rel="canonical", sitemaps); relevant khi migrating giữa structures. - Site move với URL thay đổi — Google chính thức workflow cho một URL-structure migration: mapping, các chuyển hướng, Search Console verification, và monitoring.
- Site reputation abuse policy (November 2024) — moving nội dung giữa một subdirectory và subdomain không resolve một spam violation.
- Subdomains và subdirectories (January 2008) — đó oldest chính thức Google blog treatment of đó topic.
Bing / Microsoft
- Some Thoughts on Website Boundaries — Frederic Dubut và đó Bing Quản trị viên web Tools team on single-domain / subdomain / subdirectory models và đó “inorganic site structure” (bản dịch) «inorganic site structure» hình phạt (PBNs, doorways, subdomain leasing).
- Bing Quản trị viên web Guidelines — chung hướng dẫn; không prescriptive preference giữa structures cho tiêu chuẩn các trang.
Quotes từ đó nguồn
On-đó-record statements từ Google và Bing. Nơi đó trang nguồn hỗ trợ điều này, mỗi link là một deep link đó jumps để đó quoted passage.
Google — không preference
- “You should choose whatever is easiest for you to organize and manage. From an indexing and ranking perspective, Google doesn’t have a preference.” (bản dịch) «Bạn nên chọn whatever là easiest cho bạn để organize và manage. Từ an lập chỉ mục và xếp hạng perspective, Google không có một preference.» — Google Search Central tài liệu.
John Mueller, Google (Office Hours Hangout, Có thể 25, 2018; reported by Search Engine Journal)
- “In general, we see these the same. I would personally try to keep things together as much as possible.” (bản dịch) «Nhìn chung, we see những đó giống nhau. I sẽ personally try để giữ điều together as nhiều as có thể.» Coverage
- “So if it’s the same site then try to put them on the same site, essentially, and use subdomains where things are really kind of slightly different.” (bản dịch) «So nếu đây là đó giống nhau site thì try để put them on đó giống nhau site, essentially, và dùng subdomains nơi điều là thực sự kind of slightly khác nhau.» Coverage
- “There are lots of really strong opinions on this so, from my point of view, this is something that could go either way.” (bản dịch) «Có lots of thực sự mạnh opinions on này so, từ my point of view, này là điều gì đó có thể go either way.» Coverage
John Mueller, Google (on theo-site treatment)
- “sometimes that can include sub-domains, sometimes that doesn’t include sub-domains. Sometimes that includes sub-directories, and sometimes that doesn’t include specific sub-directories.” (bản dịch) «sometimes đó có thể bao gồm sub-domains, sometimes đó không bao gồm sub-domains. Sometimes đó bao gồm sub-directories, và sometimes đó không bao gồm cụ thể sub-directories.»
John Mueller, Google (on crawling và Search Console, qua Search Engine Journal)
- “this helps us with crawling since we understand that everything is on the same server and can crawl it in a similar way. Sometimes, it also makes it easier for users who recognize that these sections are all a part of the same bigger website.” (bản dịch) «này helps us với crawling since we understand đó mọi thứ là on đó giống nhau máy chủ và có thể crawl điều này trong một similar way. Sometimes, điều này cũng làm điều này easier cho người dùng ai recognize đó những sections là all một part of đó giống nhau bigger website.» Coverage
- “You’ll need to verify subdomains separately in Search Console… We do have to learn how to crawl them separately but for the most part that’s just a formality for the first few days.” (bản dịch) «Bạn’ll cần để verify subdomains riêng trong Search Console… We làm có để learn cách crawl them riêng nhưng cho đó hầu hết part đó là chỉ một formality cho đó đầu tiên một vài days.» Coverage
Gary Illyes, Google (Pubcon 2023, on liệu subdirectories có thể là treated riêng — cited trong my Ahrefs bài viết)
- “Yes. It’s not common on the English web but it is in other languages.” (bản dịch) «Có. đây là không phổ biến on đó English web nhưng điều này là trong other languages.» Nguồn
Matt Cutts, Google (former head of webspam)
- “They are roughly the equivalent. I would basically go with whichever is easier for you in terms of configuration, your CMSs.” (bản dịch) «They là khoảng đó tương đương. I sẽ basically go với whichever là easier cho bạn trong terms of configuration, của bạn CMSs.» (2013)
Google — site reputation abuse (November 2024 policy cập nhật)
- “Moving content to a subdirectory or subdomain within the same site’s domain name doesn’t resolve the underlying issue and may be viewed as an attempt to circumvent spam policy.” (bản dịch) «Moving nội dung để một subdirectory hoặc subdomain trong đó giống nhau site domain name không resolve đó underlying vấn đề và có thể là viewed as an attempt để circumvent spam policy.» Nhảy đến trích dẫn
Bing — inorganic site structure (Frederic Dubut & Bing Quản trị viên web Tools team, November 4, 2019)
- “If you offer free hosting on your subdomains and 95% of your subdomains are flagged as spam, Bing will expand penalties to the entire domain, even if the root website itself is not spam.” (bản dịch) «Nếu bạn offer free hosting on của bạn subdomains và 95% of của bạn subdomains là flagged as spam, Bing sẽ expand penalties để đó entire domain, ngay cả khi đó root website itself không phải spam.» Nhảy đến trích dẫn
#:~:text= deep links đích đó quoted passage on những các trang; xác nhận so với đó trực tiếp nguồn trước treating bất kỳ as cuối, since site copy có thể thay đổi. Chọn (hoặc migrating) một structure — checklist
Deciding nơi một new section nên trực tiếp
- Là đó nội dung closely related để đó main site (blog, tài liệu, help center)? → lean subdirectory.
- Làm điều này cần một tách biệt CMS, máy chủ, team, hoặc stack? → một subdomain là reasonable.
- Là điều này một genuinely distinct sản phẩm hoặc service (
app.,status.)? → subdomain. - International targeting? → subdirectory, subdomain, và ccTLD là all hợp lệ; pick on operational cost so với. geo-tín hiệu strength.
- Làm bạn cần site names trong tìm kiếm này section? → chỉ subdomains qualify, không subdirectories.
Trước migrating subdomain → subdirectory (chỉ nếu có một real reason)
- Xác nhận đó move không purely cho SEO — nếu điều này là, reconsider.
- Cách sửa liên kết nội bộ, nội dung quality, và analytics đầu tiên, so bạn có thể đọc đó kết quả cleanly và không chỉ confounding đó kiểm thử.
- Map mỗi old URL để của nó new path và set
301các chuyển hướng. - Cập nhật liên kết nội bộ, sitemaps, và canonical tags để đó new paths.
- Verify đó new structure trong Search Console (hoặc dùng một Domain thuộc tính).
- không migrate để escape một site-reputation-abuse vấn đề — điều này sẽ không cách sửa điều này.
- Expect 2–4 weeks of fluctuation; monitor thứ hạng và crawl số liệu qua recovery (typically 4–6 weeks).
Nếu bạn là locked vào một subdomain
- Consider một reverse proxy (e.g., Cloudflare Workers) để serve điều này as một subdirectory URL thay vì một đầy đủ migration.
- Hãy bảo đảm đó proxied nội dung là genuinely yours, không leased bên thứ ba nội dung.
Đó mental models
1. Structure là organization, không một xếp hạng lever. Đó dot-so với-slash lựa chọn là về cách bạn organize và manage nội dung. Google có không blanket preference. Bắt đầu mỗi conversation ở đây — điều này kills 90% of đó bad advice.
2. Treatment là theo-site, decided by integration. Google decides theo site liệu một subdomain là “part of bạn” hoặc tách biệt. Đó các tín hiệu là integration: liên kết nội bộ, consistent UX, related nội dung, coherent sitemaps. MỘT well-integrated subdomain behaves như part of trang web của bạn; một poorly-integrated subdirectory có thể behave như một tách biệt một. Optimize đó integration, không đó URL.
3. Đó confounder kiểm thử. Trước khi bạn believe bất kỳ “we moved and traffic jumped” (bản dịch) «we moved và traffic jumped» story, ask: điều gì khác changed? Liên kết nội bộ, pruned nội dung, new CMS, fixed analytics — nếu bất kỳ moved tại đó giống nhau time, bạn không thể credit đó URL structure. Đó chỉ sạch các kiểm thử là đó ones nơi không có gì khác changed (Pink Cake Box).
4. Convenience so với. khả năng. Subdirectories win on convenience (một GSC thuộc tính, một analytics setup, không crawl re-learning). Subdomains win on khả năng (tách biệt stacks/nhóm/các máy chủ, site names trong tìm kiếm, sạch separation cho distinct các sản phẩm). Decide on mà axis của bạn situation thực ra lives.
5. Đó migration risk rule. Migrate chỉ khi đó URL thay đổi là bundled với thay đổi đó genuinely move đó needle, hoặc khi có một real kỹ thuật vấn đề. MỘT hoạt động, well-integrated subdomain
- “subfolders rank better” (bản dịch) «subfolders xếp hạng tốt hơn» không phải một reason để migrate — đây là risk không có reward.
Nên này section dùng một subdomain hoặc subdirectory?
Choose the structure based on operating needs
Structure decisions đó confuse nguyên nhân và effect
Migrating chỉ vì subdirectories supposedly xếp hạng tốt hơn
Google không express một blanket xếp hạng preference. Giữ một healthy, integrated section nơi điều này là trừ khi một real nền tảng, sản phẩm, hoặc operating cần justifies đó risk of thay đổi mỗi URL.
Thay đổi URLs, CMS, nội dung, links, và analytics together
MỘT bundled phát hành làm đó outcome không thể để thuộc tính. Cách sửa known nội dung và linking các vấn đề đầu tiên, document đó baseline, và isolate thay đổi nơi practical.
Treating một subdomain as unrelated trong đó site own navigation
Kỹ thuật separation không yêu cầu người dùng hoặc link isolation. Cho một legitimate subdomain clear contextual và navigational links so của nó mối quan hệ để đó main site là understandable.
Kiểm tra một migration sample từ đó command line
Put một old subdomain URL theo line trong old-urls.txt, thì inspect đó đầu tiên phản hồi
và đích on macOS hoặc Linux:
while IFS= read -r url; do printf '%s\t' "$url"; curl -sS -o /dev/null -w '%{http_code}\t%{redirect_url}\n' "$url"; done < old-urls.txtPowerShell tương đương:
Get-Content old-urls.txt | ForEach-Object { try { $r = Invoke-WebRequest -Uri $_ -MaximumRedirection 0 -SkipHttpErrorCheck; [pscustomobject]@{Url=$_; Status=$r.StatusCode; Location=$r.Headers.Location} } catch { [pscustomobject]@{Url=$_; Error=$_.Exception.Message} } }Đó đầu tiên hop nên là một chuyển hướng vĩnh viễn để đó chính xác mapped subdirectory URL, không một home trang hoặc một chain. Chạy một đầy đủ crawler và migration review trước treating một sample as hoàn tất evidence.
Tools cho một structure decision và migration
- SEO Migration Planner & Validator — xây dựng và review đó old-để-new URL map, verify deployed các chuyển hướng, và so sánh sitemap sets khi một move là genuinely justified.
- Chuỗi chuyển hướng Mapper — trace liệu an old subdomain URL reaches của nó matching subdirectory đích trong một sạch hop.
- Google Search Console — dùng một Domain thuộc tính cho một combined view và hostname-cụ thể properties khi nhóm cần tách biệt operational reporting.
- MỘT link crawler — so sánh navigation, inlinks, canonicals, và crawl depth trước và sau đó thay đổi so improved integration không phải mistaken cho một URL-format win.
Tự kiểm tra: Subdomain so với Subdirectory
Five nhanh các câu hỏi on cách subdomains và subdirectories thực sự differ cho SEO. Pick an câu trả lời cho mỗi, thì kiểm tra.
Các tài nguyên worth của bạn time
My related writing
- Subdomain so với Subdirectory: Subdirectories Không phải Tốt hơn Subdomains Cho SEO — my đầy đủ contrarian case, với đó Mueller và Illyes quotes, đó case-nghiên cứu confounders, và vì sao I’d think twice trước migrating cho URL structure alone.
- Đó Beginner Hướng dẫn để SEO kỹ thuật — nơi site structure decisions fit trong đó bigger picture.
My speaking
- Cách Tìm kiếm Hoạt động (SlideShare) — my walkthrough of crawling, kết xuất, lập chỉ mục, và xếp hạng; hữu ích background cho vì sao “integration” matters hơn đó URL. (Standing disclaimer áp dụng: “This is my understanding of systems… not going to be 100% complete or accurate.” (bản dịch) «Này là my understanding of các hệ thống… không going để là 100% hoàn tất hoặc chính xác.»)
Từ khoảng đó ngành
- Google John Mueller On Khi nào nên Dùng Subdomain so với. Directory (Search Engine Journal, Matt G. Southern) — đó Có thể 2018 Office Hours quotes trong context.
- Subdomains so với. Subfolders: Mà Là Tốt hơn cho SEO & Vì sao? (Search Engine Journal, Roger Montti) — Mueller on crawling và Search Console treatment.
- Some Thoughts on Website Boundaries (Bing, Frederic Dubut) — Bing website-boundary models và đó inorganic-site-structure hình phạt.
- Làm Switching Từ một Subdomain để một Subfolder Improve SEO? Case Studies & Experts RoundUp (cognitiveSEO) — đó best case-nghiên cứu roundup, honest về confounders.
- Subdirectories so với Subdomains: Mà là Tốt hơn cho SEO? (Portent) — solid methodology và đó Pink Cake Box / Archive.org verification.
- Subdomains so với Subdirectories Research: 20K Từ khóa Analysed (SE Xếp hạng) — một transparent correlational nghiên cứu trên 15 markets và 1,5M SERP positions.
- SEO Thực hành tốt nhất với Cloudflare Workers, Part 1: Subdomain so với. Subdirectory (Cloudflare) — đó reverse-proxy workaround explained, với một Part 2 implementation hướng dẫn.
Nhật ký thay đổi
Đã cập nhật 8 thg 8, 2026.
Tóm tắt biên tập và chi tiết thay đổi đã ghi nhận.Chi tiết thay đổi
-
Ghi chú thay đổi chi tiết hiện chỉ có bằng tiếng Anh.
Không thể so sánh đầy đủ — không có bản lưu trước đó cho lần sửa đổi này.
Đã cập nhật 18 thg 7, 2026.
Tóm tắt biên tập và chi tiết thay đổi đã ghi nhận.Chi tiết thay đổi
-
Ghi chú thay đổi chi tiết hiện chỉ có bằng tiếng Anh.
Không thể so sánh đầy đủ — không có bản lưu trước đó cho lần sửa đổi này.