Ecommerce Site Architecture

Architecture decisions made at the platform level affect every page on a store. Category depth determines how many internal links a product page receives and how much link equity reaches it. URL structure determines whether pages consolidate authority or fragment it. Internal linking patterns determine how crawlers move through the catalogue and how users navigate from discovery to purchase.

Getting these decisions right at the start is considerably easier than restructuring an established store, where every URL change requires a 301 redirect and carries migration risk.

What is the optimal category depth for ecommerce?

Standard practice limits category depth to three or four click levels from homepage to any product page: Homepage > Main Category > Subcategory > Product. Beyond four levels, pages at the bottom of the hierarchy receive progressively fewer internal links and less link equity. Pages that are harder to reach are also crawled less frequently.

The practical goal is to keep structure as flat as meaningful organisation allows. A store with 50,000 products in 200 categories cannot be entirely flat (some hierarchy is necessary), but adding an extra layer of sub-subcategories to better organise a small product range usually costs more in crawl efficiency than it gains in organisational clarity.

When assessing depth, count the number of clicks from the homepage to the deepest product page, not the number of URL segments. A URL like /footwear/womens/trainers/running/nike-air-max/ is five segments deep but may only be four clicks from the homepage if there is a direct link path. URL structure and navigable depth are distinct.

How should ecommerce URLs be structured?

Clean, hierarchical URLs that reflect the category structure serve two purposes: they signal topical relevance to search engines, and they are easier for users to understand and share.

The recommended pattern: /category/subcategory/product-name/

Shopify’s default URL structure uses /collections/ for categories and /products/ for product pages: domain.com/collections/womens-trainers/products/product-name. This is a functional structure. The /collections/ prefix does not harm search performance. Moving an established Shopify store away from that structure is not an option: Shopify reserves /products and /collections as fixed paths and does not allow redirects from them.1 The default structure is fine, and the question does not arise.

What to avoid:

  • Session IDs and user-specific parameters in URLs (?sessionid=abc123)
  • Repetitive keyword stacking (/shoes/trainers/womens-trainers/womens-running-trainers/)
  • Sort and filter parameters that create near-duplicate URLs (covered separately in faceted navigation SEO)

Breadcrumb navigation (Home > Trainers > Women’s Trainers > Nike Air Max) creates internal links from every product page to each category above it. This bidirectional linking matters for link equity: the product page receives a link from the category via the product listing; the product page links back up to the category via its breadcrumb.

This bidirectional structure means category pages accumulate link equity from all the product pages beneath them, in addition to any external links they earn. Internal links redistribute the equity a site already has rather than adding to it: external backlinks are what increase the total available. Product pages receive link equity from the categories above them, even in the absence of external links to individual product URLs.

Breadcrumbs should use BreadcrumbList structured data in JSON-LD. Google uses the markup to categorise the page’s position in the site hierarchy and can show that trail in the result, though it lists the breadcrumb rich result as a desktop feature.2 The internal linking benefit described above applies regardless of how the result displays, and is the more reliable reason to implement it.

How does internal linking work across large catalogues?

On a large store, internal linking strategy is a question of priority. Every page cannot link to every other. The structure should direct the most link equity to the highest-value pages.

Homepage to top-level category pages. The homepage is the most linked-to page on most ecommerce sites. It should link directly to primary categories. Linking from the homepage to individual product pages is appropriate only for flagship products.

Category pages to subcategories and featured products. Category pages should link to child subcategories and to bestselling or featured products. These links push link equity from the relatively well-linked category level into the product level.

Product pages to related products and parent category. Related products widgets are link equity redistribution, not only a UX feature. Products that link to related and complementary items create a web of connections that improves crawlability across the catalogue.

Editorial content to category pages. Blog posts, buying guides, and editorial content on the site should link to category pages. Categories are durable: individual products go out of stock and are removed; category URLs persist. External links earned by editorial content that point to a category page continue to accrue value even after the specific products in that category change.

Earning external links to product pages is structurally difficult. Products get discontinued, renamed, and removed. An external link pointing to a specific product URL is often wasted within a couple of years when the product leaves the catalogue.

Category pages are durable destinations. “Women’s running shoes” is a stable URL that can rank for commercial queries over years without change. Digital PR campaigns, outreach, and editorial mentions should be targeted at category page URLs as the landing destination, not individual product SKUs.

For the same reason, when evaluating which pages deserve SEO investment (content improvement, link building, structured data completeness), category pages typically offer a better return than product pages for most queries.

Does architecture change for AI shopping?

The conclusion above holds for links and for commercial rankings, and needs scoping for AI surfaces. Category pages remain the right target for link building, because they are the durable URLs that accumulate equity and rank for head commercial queries. AI shopping surfaces retrieve at a different granularity: the unit is the product listing, assembled from feed and page data, rather than the category page that leads to it.

Both are true at once, and they do not compete for the same work. Architecture serves the first; catalogue and listing completeness serves the second, and is covered in AI shopping agents and ecommerce visibility. The failure mode is assuming a strong category structure carries a store into AI recommendations on its own.

Footnotes

  1. URL redirects — Shopify Help Center

  2. Breadcrumb (BreadcrumbList) structured data — Google Search Central