Ecommerce Kiến trúc trang web

Cách structure an online store các trang so cả hai shoppers và cácông cụ tìm kiếm có thể navigate điều này — flat so với. pyramid, nhấp depth, URL structure, liên kết nội bộ, breadcrumbs, mega menus, faceted navigation, và mobile-đầu tiên nav. Google đọcủa bạn link graph, không của bạn URL paths.

Xuất bản lần đầu: 25 thg 6, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ
1 tín hiệu bằng chứng trên trang này

Ecommerce kiến trúc trang web là cách của bạn store categories, subcategories, và các sản phẩm là organized và linked. Đó biggest misconception là đó flat là luôn tốt hơn và đó URL depth là điều gì matters — neither là đúng. Google đọcủa bạn liên kết nội bộ graph, không của bạn URL paths, để hoạt động out hierarchy và importance. MỘT reasonable pyramid (homepage → categories → subcategories → các sản phẩm) beats cả hai một totally flat structure và một cũng-deep một. URL structure là barely một xếp hạng factor; URL stability là đó real risk. Đó commerce-cụ thể failure points là faceted navigation eating ngân sách crawl, các sản phẩm living trong multiple categories, mega menus diluting giá trị liên kết, và mobile nav đang đó nav Google thực ra crawl.

TL;DR — Google đọcủa bạn link graph, không của bạn URL paths, để infer hierarchy và relative importance — “Google generally doesn’t look at the structure of URLs… it analyzes the linkages between pages.” (bản dịch) «Google generally không xem đó structure of URLs… điều này analyzes đó linkages giữa các trang.» So một reasonable pyramid (homepage → category → subcategory → sản phẩm) với mạnh internal linking beats cả hai một flat structure (Mueller: một super-flat structure là not tốt hơn một reasonable pyramid) và một cũng-deep một (bạn không muốn để “click through a million times” (bản dịch) «nhấp qua một million times»). URL structure là barely một xếp hạng factor; URL stability là đó real risk. Đó commerce-cụ thể failure points là multi-category các sản phẩm (canonical them), mega menus (link-equity dilution + crawlability), faceted navigation (crawl-budget killer — robots.txt > canonical), và mobile-đầu tiên nav (của bạn mobile nav is của bạn SEO nav).

Evidence for this claim Google recommends linking menus to categories, categories to subcategories, and subcategories to products so Googlebot can follow the catalog hierarchy. Scope: Google ecommerce linking architecture. Confidence: high · Verified: Google Search Central: Ecommerce site structure Evidence for this claim Breadcrumb structured data communicates a page's position in site hierarchy and may support breadcrumb appearances in search. Scope: Google breadcrumb guidance. Confidence: high · Verified: Google Search Central: Breadcrumb structured data

Architecture phục vụ hai masters

Ecommerce trang web architecture là hierarchical organization của store các trang — categories, subcategories, các sản phẩm, và supporting nội dung — plus navigation, liên kết nội bộ, và URL patterns đó connect them. nó có để satisfy hai audiences tại sau khi: shoppers ai muốn các sản phẩm trong as một vài clicks as có thể, và cácông cụ tìm kiếm đó cần để discover mỗi trang, understand Cách các trang relate, và assign relative importance.

toàn bộ topic xuất hiện xuống để một principle đó phần lớn architecture các hướng dẫn bury hoặc miss: Google đọc links, không các URL.

Đây là load-bearing fact. từ Google ecommerce tài liệu:

“Google generally doesn’t look at the structure of URLs to work out the structure of a site. Instead, it analyzes the linkages between pages to gain insights about the relative importance of different pages on a site.” (bản dịch) «Google generally không xem đó structure of URLs để hoạt động out đó structure of một site. Thay vì, điều này analyzes đó linkages giữa các trang để gain insights về đó relative importance of khác nhau các trang on một site.»

Và đó mechanism cho “relative importance” (bản dịch) «relative importance»:

“the more links a page has to it within a site, the higher the relative importance of the page to other pages.” (bản dịch) «đó hơn links một trang có để điều này trong một site, đó cao hơn đó relative importance of đó trang để other các trang.»

So của bạn internal link graph làm nặng lifting. Liệu URL đọc /shoes/running/brand-x hoặc /products/brand-x là phụ. sản phẩm đó linked từ của bạn homepage, của bạn top category, và three blog posts sẽ nhận nhiều hơn crawl attention và nhiều hơn PageRank hơn sản phẩm hai clicks deep với không có gì pointing tại nó — mặc dù thứ hai một có “shallower” URL.

practical chain Google khuyến nghị:

“add links from menus to category pages, from category pages to sub-category pages, and finally from sub-category pages to all product pages.” (bản dịch) «thêm links từ menus để category các trang, từ category các trang để sub-category các trang, và finally từ sub-category các trang để all sản phẩm các trang.»

và warning cho lớn catalogs:

“If category pages don’t include direct links to all products in a category, Googlebot might not find all of your products by crawling alone.” (bản dịch) «Nếu category các trang không bao gồm trực tiếp links để all các sản phẩm trong một category, Googlebot có thể không tìm all of của bạn các sản phẩm by crawling alone.»

Khi trực tiếp linking để mỗi sản phẩm không phải feasible tại scale, fall back để XML sitemaps và (cho các sản phẩm) Merchant Center feed as phụ phát hiện paths — nhưng những điều đó là backstop, không substitute cho crawlable link graph.

Flat so với. pyramid — myth, busted

Nearly mỗi đối thủ hướng dẫn repeats some version of “flat is better” (bản dịch) «flat là tốt hơn» hoặc “keep everything within three clicks.” (bản dịch) «giữ mọi thứ trong three clicks.» Đó advice là half-right và badly được diễn đạt. Đó nuance xuất hiện straight từ John Mueller (Google, Feb 2, 2021 office-hours):

“On the other hand, kind of more the top down approach or pyramid structure helps us a lot more to understand the context of individual pages within the site.” (bản dịch) «Mặt khác, kind of hơn đó top xuống approach hoặc pyramid structure helps us một lot hơn để understand đó context of individual các trang trong đó site.»

“So in particular, if we know this category is associated with these other subcategories then that’s a clear connection that we have between those parts.” (bản dịch) «So trong particular, nếu we know này category là associated với những other subcategories thì đó là một clear connection đó we có giữa những parts.»

“So from my point of view, I think for a lot of sites it makes sense to have more of a pyramid structure.” (bản dịch) «So từ my point of view, I think cho một lot of các trang điều này làm hợp lý để có hơn of một pyramid structure.»

và line đó kills myth outright:

“But it’s not the case that a super flat structure is going to be better than a kind of reasonable pyramid structure.” (bản dịch) «Nhưng đây là không đó case đó một super flat structure là going để là tốt hơn một kind of reasonable pyramid structure.»

Vì sao một totally flat structure hurts: nếu mỗi trang là một hoặc hai links từ đó homepage, bạn đã flattened đó importance tín hiệu cũng. bạn là effectively telling Google “everything here is equally important,” (bản dịch) «mọi thứ ở đây là equally quan trọng,» mà strips away đó context điều này dùng để understand mà categories own mà subcategories own mà các sản phẩm.

nhưng không overcorrect vào deep tree, vì Mueller capped đó cũng:

“But at the same time you don’t want it to be such that it’s like you have to click through a million times to actually get to the actual content.” (bản dịch) «Nhưng đồng thời bạn không muốn điều này để là such đó đây là như bạn có để nhấp qua một million times để thực ra nhận để đó thực tế nội dung.»

So neither extreme wins. đích là pyramid đó shallow đủ: rộng categories tại top, narrowing để các sản phẩm, với nhấp depth kept thấp cho bất cứ điều gì đó matters. As practical rule của thumb, aim cho phần lớn các sản phẩm trong ~3–4 clicks của homepage on lớn store, 2–3 on nhỏ một — nhưng treat đó as guideline, không Google directive (see nhấp-depth note dưới).

Đó “3-click rule” (bản dịch) «3-nhấp rule» là consensus, không một Google rule

Bạn’ll see “every page must be within 3 clicks of the homepage” (bản dịch) «mỗi trang phải được trong 3 clicks of đó homepage» mọi nơi. đây là hữu ích as một heuristic, nhưng Google có không stated một cụ thể nhấp number. Đó real risk on một lớn catalog không exceeding một nhấp count — đây là orphaning các trang (không có gì links để them) hoặc burying them so deep đó các crawler rarely reach them. MỘT dài-tail sản phẩm four hoặc five clicks deep có thể xếp hạng fine if điều này sits trong một logical hierarchy và xuất hiện trong của bạn sitemap. Nhấp depth là một crawlability và PageRank-flow concern, không một trực tiếp xếp hạng factor.

Đây là cũng Vì sao liên kết nội bộ beats URL depth. sản phẩm five clicks deep trong hierarchy nhưng linked trực tiếp từ homepage nhận nhiều hơn crawl attention hơn sản phẩm hai clicks deep với không inbound liên kết nội bộ. nếu bạn’ve đã nhận quan trọng sản phẩm sitting deep trong tree, khắc phục không phải để re-architect toàn bộ URL scheme — nó để link để nó từ cao hơn-authority các trang.

URL structure: stability matters, depth không

Google URL hướng dẫn cho ecommerce là mostly về hygiene, không hierarchy:

“use long-term, persistent URLs. Avoid internally linking to temporary parameters, such as session-IDs, tracking codes, user-relative values (location=nearby, time=last-week), and the current time.” (bản dịch) «dùng dài-term, persistent URLs. Tránh internally linking để tạm thời parameters, such as session-IDs, tracking codes, người dùng-relative các giá trị (location=nearby, time=cuối cùng-week), và đó hiện tại time.»

“Minimize the number of alternative URLs that return the same content to avoid Google making more requests to your site than needed.” (bản dịch) «Minimize đó number of alternative URLs đó trả về đó giống nhau nội dung để tránh Google đang làm hơn các yêu cầu để trang web của bạn hơn needed.»

“Use ?key=value URL parameters rather than ?value, where possible. URL parameters allow Google Search to understand your site’s structure and crawl and index more efficiently.” (bản dịch) «Dùng ?key=value URL parameters thay vì ?value, nơi có thể. URL parameters cho phép Google Search để understand trang web của bạn structure và crawl và chỉ mục hơn efficiently.»

Notice Điều gì không ở đó: bất kỳ mandate về nesting depth. Google URL tài liệu làm không say /category/subcategory/product là tốt hơn hoặc tệ hơn /product/slug. Depth là trang web-structure decision, không URL prescription.

Mueller có rated URL structure thấp (roughly 1 out của 7) as trực tiếp xếp hạng factor, và đã nói đang làm các URL artificially flat cung cấp không SEO benefit. takeaway cho ecommerce: URL structure là barely xếp hạng factor, nhưng URL stability là thực risk factor. Restructuring /category/subcategory/product vào /product sau đó gây ra chuyển hướng chains và tạm thời xếp hạng disruption even nếu end state là neutral. Pick consistent, descriptive format sớm (/product/black-t-shirt beats /product/3243) và không churn nó.

Multi-category các sản phẩm và duplicate-nội dung trap

một place URL structure làm bite bạn là các sản phẩm đó trực tiếp trong multiple categories. nếu của bạn URL encodes category path, giống nhau sản phẩm có thể là reached tại /shoes/running/brand-x /sale/brand-x /brand-x-page — three các URL, một sản phẩm, duplicate nội dung. Hai cácách sửa:

  • Flat sản phẩm các URL (/products/brand-x) — một canonical URL regardless của mà category path shopper took để nhận ở đó. Đây là Ahrefs ecommerce hướng dẫn được khuyến nghị default, precisely để sidestep điều này vấn đề.
  • Category-nested các URL với canonical — pick một chính category, xây dựng sản phẩm URL dưới nó, và canonicalize mỗi khác path để đó chính.

Either way, bạn resolve ambiguity với single canonical. sau đó bạn restore hierarchy tín hiệu — mà flat URL throws away — với breadcrumb schema (dưới).

Liên kết nội bộ là thực tế mechanism

PageRank và crawl attention flow qua <a href> links, so của bạn internal linking strategy is của bạn architecture trên thực tế. một vài patterns đó quan trọng:

  • Link best-sellers và priority các sản phẩm từ đó homepage và cao-authority các trang. Google explicitly notes bạn có thể tín hiệu importance by linking popular các sản phẩm từ đó homepage, blog posts, hoặc newsletters.
  • Category các trang là link-equity distributors. They take authority từ đó homepage/nav và truyền điều này xuống để các sản phẩm. MỘT category trang đó không link để all của nó các sản phẩm leaves some undiscoverable by crawling alone.
  • Editorial → sản phẩm links. Blog nội dung đó links để relevant các sản phẩm cả hai truyền equity và tạo topical context.
  • Related các sản phẩm / “customers also bought” (bản dịch) «customers cũng bought» thêm cross-links across đó tree so các crawler (và shoppers) không hit dead ends.
  • Breadcrumbs là liên kết nội bộ cũng, không chỉ UX.

I’ve đã làm đó internal-links case cho năm. As I wrote trong The Hầu hết Quan trọng Điều SEOs Overlook: Internal Links: “By adding internal links, you are directing the flow of your website authority to the best content, which in turn signals to search engines which pages you consider the most important.” (bản dịch) «By thêm liên kết nội bộ, bạn là directing đó flow of của bạn website authority để đó best nội dung, mà trong turn các tín hiệu để cácông cụ tìm kiếmà các trang bạn consider đó hầu hết quan trọng.» Và đó part nhóm forget: “you may be frequently producing new pieces of content in which you add internal links, but are you remembering to go back to your older pieces” (bản dịch) «bạn có thể là frequently producing new pieces of nội dung trong mà bạn thêm liên kết nội bộ, nhưng là bạn remembering để go back để của bạn older pieces» — on một store, đó có nghĩa là linking new arrivals từ existing category và editorial các trang, không chỉ xuất bản them và walking away. Đó reason này là worth đó effort: “Links on your site are a lot easier to get than links from other sites, and they can be just as effective.” (bản dịch) «Links trên trang web của bạn là một lot easier để nhận hơn links từ other các trang, và they có thể là chỉ as effective.»

cho đầy đủ treatment, see liên kết nội bộ.

Breadcrumbs earn của họ giữ three ways: họ’re liên kết nội bộ, họ cho Google rõ ràng hierarchy tín hiệu, và họ có thể render as breadcrumb trail trong SERP. từ Google structured-dữ liệu tài liệu:

“A breadcrumb trail on a page indicates the page’s position in the site hierarchy.” (bản dịch) «MỘT breadcrumb trail on một trang indicates đó trang position trong đó site hierarchy.»

Crucially, breadcrumbs let bạn communicate hierarchy even Khi của bạn các URL là flat. sản phẩm tại /products/black-t-shirt có thể vẫn carry Home > Clothing > T-Shirts > Black T-Shirt qua BreadcrumbList markup. và Google khuyến nghị là để model người dùng path, không URL:

“We recommend providing breadcrumbs that represent a typical user path to a page, instead of mirroring the URL structure.” (bản dịch) «We khuyến nghị providing breadcrumbs đó represent một typical người dùng path để một trang, thay vì mirroring đó URL structure.»

cho các sản phẩm đó belong trong multiple categories, Bạn có thể supply multiple BreadcrumbList markups cho khác navigation paths. BreadcrumbList cần ít nhất hai ListItem entries (mỗi với position, name, và item) để là eligible cho rich kết quả; cuối crumb item là tùy chọn. (cho Điều gì nó worth, Mueller có đã nói breadcrumb placement on trang không quan trọng cho SEO — so optimize nó cho người dùng.)

Hai tách biệt các vấn đề trực tiếp ở đây: crawlability và link-equity dilution.

Crawlability. Google có thể chỉ follow links đó là thực anchors:

“Google can only crawl your link if it’s an <a> HTML element with an href attribute.” (bản dịch) «Google có thể chỉ crawl của bạn link nếu đây là an <a> HTML element với an href thuộc tính.»

JavaScript là fine as dài as đó được kết xuất DOM contains real anchors“Links are also crawlable when you use JavaScript to insert them into a page dynamically as long as it uses the HTML markup shown above.” (bản dịch) «Links là cũng crawlable khi bạn dùng JavaScript để insert them vào một trang dynamically miễn là điều này dùng đó HTML markup shown trên.» Điều gì breaks là onclick-chỉ handlers, routerLink-style các thuộc tính, hoặc javascript: hrefs:

“Google can’t reliably extract URLs from <a> elements that don’t have an href attribute or other tags that perform as links because of script events.” (bản dịch) «Google không thể reliably extract URLs từ <a> elements đó không có an href thuộc tính hoặc other tags đó perform as links làm script events.»

So một JavaScript mega menu can là crawlable — đó myth đó “JS menus can’t be crawled” (bản dịch) «JS menus không thể là được crawl» là sai — nhưng chỉ nếu điều này renders proper <a href> links.

Link-equity dilution. mỗi link trong của bạn global nav siphons slice của homepage authority. 200-link mega menu spreads đó authority thinly across 200 destinations. Mueller có cũng flagged đó rất lớn, frequently-thay đổi mega menus có thể là hard cho Google để interpret. thực dụng move: giữ global nav để top-level categories ( manageable count, không toàn bộ taxonomy), và let category các trang xử lý deeper subcategory và sản phẩm navigation. đó pyramid expressing itself trong nav.

Faceted navigation: crawl-budget killer

Đây là single biggest crawl-budget leak on phần lớn ecommerce các trang. Filters (price, color, size, loại order) mỗi generate crawlable các URL, và combinations explode — modest catalog có thể hide millions của filtered các URL.

Google hierarchy của cácách sửa, trong của họ stated order của effectiveness:

“Use robots.txt to disallow crawling of faceted navigation URLs” (bản dịch) «Dùng robots.txt để disallow crawling of faceted navigation URLs»

đó là đó được ưu tiên phương thức. Đó soft các tín hiệu — notably rel=canonical — là acknowledged nhưng “generally less effective in the long term than the previously mentioned methods.” (bản dịch) «generally ít hơn effective trong đó dài term hơn đó previously mentioned các phương thức.» (Này là đó reverse of điều gì một lot of các hướng dẫn khuyến nghị, mà lead với canonical.) Other levers:

  • URL fragments (#) cho filter state passively tránh crawling, since “Google Search generally doesn’t support URL fragments in crawling and indexing.” (bản dịch) «Google Search generally không hỗ trợ URL fragments trong crawling và lập chỉ mục.»
  • Trả về 404 cho empty combinations: “If there are no green fish in the site’s inventory, users as well as crawlers should receive a ‘not found’ error.” (bản dịch) «Nếu có không green fish trong đó site inventory, người dùng cũng như các crawler nên nhận một ‘không tìm thấy’ lỗi.»

strategy decision xuất hiện trước khi kỹ thuật một: identify mà filter combinations có genuine tìm kiếm demand (và deserve để là indexable landing các trang) versus pure-UX filters (mà nên là blocked hoặc được xây dựng so họ không bao giờ mint URL). điều này topic có của nó own deep dive — see faceted navigation — và nó ties trực tiếp để ngân sách crawl.

Mobile-đầu tiên: của bạn mobile nav là của bạn SEO nav

Google indexes mobile version của bạn trang web:

“Google uses the mobile version of a site’s content, crawled with the smartphone agent, for indexing and ranking.” (bản dịch) «Google dùng đó mobile version of một site nội dung, được crawl với đó smartphone agent, cho lập chỉ mục và xếp hạng.»

đó có structural consequences. nội dung parity là bắt buộc —

“Make sure that your mobile site contains the same content as your desktop site.” (bản dịch) «Hãy bảo đảm đó của bạn mobile site contains đó giống nhau nội dung as của bạn desktop site.» — và so là structured-dữ liệu parity — “Make sure that your mobile and desktop sites have the same structured data.” (bản dịch) «Hãy bảo đảm đó của bạn mobile và desktop các trang có đó giống nhau dữ liệu có cấu trúc.» Và critically:

“Google won’t load content that requires user interactions (for example, swiping, clicking, or typing) to load.” (bản dịch) «Google sẽ không load nội dung đó requires người dùng interactions (ví dụ, swiping, clicking, hoặc typing) để load.»

Evidence for this claim Mobile architecture must preserve primary content and crawlable navigation because Google indexes from the mobile version and does not load content that requires user interaction. Scope: rendered production pages, crawlable navigation, search results, analytics, and current documentation Confidence: high · Verified: Mobile-first indexing best practices

So nếu của bạn mobile nav hides categories behind hamburger đó chỉ renders links on tap (qua JS nhấp events thay vì thực <a href> links trong DOM), những điều đó category và sản phẩm links có thể nhận không crawl tín hiệu qua navigation. Whatever hierarchy bạn được xây dựng on desktop có để survive on mobile, as thực anchors, với giống nhau nội dung và schema.

Những clusters of links đó sometimes xuất hiện dưới của bạn homepage kết quả là sitelinks, và good architecture làm them hơn có khả năng — nhưng bạn không thể pick them. Google: “Our systems analyze the link structure of your site to find shortcuts.” (bản dịch) «Của chúng ta các hệ thống analyze đó link structure of trang web của bạn để tìm shortcuts.» Và: “If the structure of your site doesn’t allow our algorithms to find good sitelinks… we won’t show them.” (bản dịch) «Nếu đó structure of trang web của bạn không cho phép của chúng ta algorithms để tìm good sitelinks… we sẽ không cho thấy them.» Bạn influence quality qua một logical structure, descriptive trang các tiêu đề và headings, và concise, relevant anchor text; bạn không thể specify mà các trang xuất hiện. Nếu một bad một cho thấy lên, đó lever là để noindex hoặc xóa đó trang.

nơi điều này fits

Đây là một piece của trang web-structure cluster dưới SEO thương mại điện tử. nó connects trực tiếp để faceted navigation ( crawl side), category trang SEOsản phẩm trang SEO ( trang types), và liên kết nội bộ ( mechanism). cho Cách các crawler traverse all điều này, see crawling.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.