Skip to main content

Lesson 7 of 7

E-commerce Site Architecture for SEO

E-commerce site architecture determines how PageRank flows through your site, how quickly Googlebot can crawl your catalog, and how clearly Google understands your content hierarchy. A well-designed architecture compounds SEO gains across your entire product catalog.

55 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

E-commerce URL Structure Best Practices

  • Homepage โ†’ Category โ†’ Subcategory โ†’ Product: Maximum 3-4 levels deep for most sites
  • URL format: /[category]/[subcategory]/[product-slug] - descriptive and hierarchical
  • Avoid deep nesting: Products more than 4 clicks from homepage receive less crawl priority
  • Consistent structure: All products in Electronics > Headphones should be at /electronics/headphones/[product]
  • Avoid duplicate paths: A product appearing under two categories should have one canonical URL
  • Breadcrumbs mandatory: Implement breadcrumb navigation + BreadcrumbList schema for all product and category pages

Internal PageRank Flow for E-commerce

  • Homepage: Highest authority - should link to your most important top-level categories
  • Category pages: Second-highest authority - link to subcategories and top/featured products
  • Subcategory pages: Link to all products within them; receive links from parent categories
  • Product pages: Authority flows in from category pages, breadcrumbs, and related product links
  • Footer links: Link to top-level categories - common SEO practice for e-commerce
  • Internal search results: Noindex or canonicalize - unique search result URLs dilute crawl budget

Practical Exercise - E-commerce Product Schema & Faceted Nav Fix

Practical Exercise - E-commerce Product Schema & Faceted Nav Fix
# E-commerce SEO: Product Schema + Faceted Navigation Control
# Goal: Implement product rich results and fix crawl budget waste

## PART 1 - Product Schema (JSON-LD for a product page)
// pages/products/[slug]/page.tsx
const productSchema = {
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Sony WH-1000XM5 Wireless Headphones",
  "image": [
    "https://yourstore.com/images/sony-xm5-front.jpg",
    "https://yourstore.com/images/sony-xm5-side.jpg"
  ],
  "description": "Industry-leading noise cancelling with 30-hour battery life.",
  "brand": {
    "@type": "Brand",
    "name": "Sony"
  },
  "sku": "WH1000XM5/B",
  "mpn": "WH-1000XM5",
  "offers": {
    "@type": "Offer",
    "url": "https://yourstore.com/products/sony-wh1000xm5",
    "priceCurrency": "USD",
    "price": "279.99",
    "priceValidUntil": "2025-12-31",
    "itemCondition": "https://schema.org/NewCondition",
    "availability": "https://schema.org/InStock",
    "seller": {
      "@type": "Organization",
      "name": "AudioHub Store"
    }
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.7",
    "reviewCount": "2841"
  }
}

// Inject in JSX:
<script
  type="application/ld+json"
  dangerouslySetInnerHTML={{ __html: JSON.stringify(productSchema) }}
/>

## PART 2 - Faceted Navigation Control (Next.js)
// next.config.js - Block filter parameter URLs from indexing:
const nextConfig = {
  async headers() {
    return [
      {
        // Apply noindex to all filter/sort parameter URLs
        source: '/:path*',
        has: [{ type: 'query', key: 'color' }],
        headers: [{ key: 'X-Robots-Tag', value: 'noindex, nofollow' }],
      },
      {
        source: '/:path*',
        has: [{ type: 'query', key: 'size' }],
        headers: [{ key: 'X-Robots-Tag', value: 'noindex, nofollow' }],
      },
    ]
  },
}

// Alternative: Canonical tag approach
// In your category page component, always canonical to base URL:
export async function generateMetadata({ searchParams }) {
  const baseUrl = 'https://yourstore.com/shoes'
  return {
    alternates: {
      canonical: baseUrl, // All filter variants point to base category
    },
  }
}

## PART 3 - Out-of-Stock Product Decision Matrix
Product Status          | Action                    | Why
------------------------|---------------------------|---------------------------
Temporarily OOS         | Keep page, update schema  | Preserve rankings + equity
Discontinued (popular)  | 301 โ†’ best substitute     | Pass link equity forward
Discontinued (no links) | 410 Gone                  | Clean up crawl budget
Seasonal (returns)      | Keep, update content      | Rank before peak season
Limited edition (sold)  | 301 โ†’ collection page     | Maintain authority flow

Quick Quiz - International & E-commerce SEO

Tip

Tip

Practice Ecommerce Site Architecture for SEO in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Diagram
Loading diagramโ€ฆ

E-commerce silo hierarchy: Homepage -> Departments -> Categories -> Subcategories -> Products with clear breadcrumb trails.

Practice Task

Note

Practice Task - (1) Write a working example of Ecommerce Site Architecture for SEO from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Common Mistake

Warning

A common mistake with Ecommerce Site Architecture for SEO is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready seo code.

Key Takeaways

  • E-commerce site architecture determines how PageRank flows through your site, how quickly Googlebot can crawl your catalog, and how clearly Google understands your content hierarchy.
  • Homepage โ†’ Category โ†’ Subcategory โ†’ Product: Maximum 3-4 levels deep for most sites
  • URL format: /[category]/[subcategory]/[product-slug] - descriptive and hierarchical
  • Avoid deep nesting: Products more than 4 clicks from homepage receive less crawl priority

Topics in This Module

0/7 done