By SitemapFixer Team
Updated April 2026

Ecommerce Sitemap: Structure for Max Indexing

Validate your ecommerce sitemap freeCheck My Sitemap

Ecommerce sites have more complex sitemap needs than content sites. You have products, categories, filtered views, variants, seasonal availability, and user-generated content to manage. A well-structured ecommerce sitemap helps Google index your most valuable pages while keeping crawl budget away from pages that should not be indexed.

What to Include in Your Ecommerce Sitemap

Include: All product pages with clear, unique content. All category and subcategory pages. Blog posts and buying guides. Brand pages if they have unique content. Key landing pages.

Exclude: Faceted navigation URLs (filters like /shoes?color=red&size=10). Cart, checkout, account, and order pages. Search results pages. Duplicate product URLs from multiple category paths (use canonical tags on those pages instead). Out-of-stock products that are permanently discontinued (redirect these to alternatives before removing from sitemap).

The Faceted Navigation Problem

Faceted navigation is the single biggest source of URL bloat and crawl waste for ecommerce sites. A catalog of 1,000 products with color, size, material, and price filters can generate millions of URLs. The solution is to block faceted URLs via robots.txt (Disallow: /*?*) or noindex them, keeping only canonical category URLs and product URLs in your sitemap. For very popular filter combinations that drive significant search traffic - like "red running shoes size 10" - create dedicated landing pages with their own canonical URLs instead.

Managing Product Variants

Product variants (size, color, material) can be handled two ways: as a single product page with all variants, or as separate URLs per variant. For most stores, a single product page with a canonical URL and variant selection via JavaScript is correct. Only create separate URLs for variants when: the variants are genuinely distinct products searched for independently (e.g., "red widget" vs "blue widget" have separate search demand), and you have enough unique content to justify each page.

Handling Seasonal and Out-of-Stock Products

For temporarily out-of-stock products: keep the page indexed with current inventory status and availability date if known. For permanently discontinued products: create a 301 redirect to the most relevant replacement or parent category, then remove from your sitemap. Never just delete a product page without a redirect if it had any backlinks or search traffic - you lose all that equity.

Sitemap Index Structure for Large Catalogs

If you have more than 50,000 URLs, use a sitemap index with separate child sitemaps by category: sitemap-products.xml, sitemap-categories.xml, sitemap-blog.xml. This makes it easy to monitor crawl stats in Google Search Console by content type. It also lets you update specific sitemaps without regenerating the entire index. Set the lastmod date on each child sitemap to the most recent change date for any URL in that file.

Validate your ecommerce sitemap
Free - finds crawl waste and indexing issues
Check My Sitemap Free

Related Guides