Skip to content
SeoWiki

The SEO encyclopedia

Technical SEO

Magento Sitemap.xml

Magento sitemap.xml is an XML file that lists store URLs so search engines can discover crawlable pages more efficiently.

Beginner3 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Magento sitemap.xml helps search engines discover store URLs efficiently.
  • Create and generate the sitemap via Admin > Marketing > SEO & Search > Site Map.
  • Always submit the sitemap URL in Google Search Console.
  • A sitemap is a discovery signal, not a guarantee of indexing.

For SEO practitioners, a sitemap helps search engines find important product, category, and CMS URLs, especially on large or frequently changing Magento stores.

Example: Generating a Magento Sitemap

  1. Log in to Magento Admin.
  2. Go to Marketing > SEO & Search > Site Map.
  3. Click Add Sitemap.
  4. Enter filename: `sitemap.xml`.
  5. Choose path: `/media/` (default).
  6. Select store view (e.g., Main Website).
  7. Click Save & Generate.
  8. Verify the file at `https://example.com/media/sitemap.xml`.

Quick Start: 5 Steps to Set Up Your Sitemap

  1. Configure settings: Go to Stores > Configuration > Catalog > XML Sitemap. Set frequency and priority for products, categories, and CMS pages.
  2. Create the sitemap: In Marketing > SEO & Search > Site Map, add a new sitemap with filename `sitemap.xml` and path `/media/`.
  3. Generate the file: Click Save & Generate to create the XML file.
  4. Submit to Search Console: In Google Search Console, go to Sitemaps and enter the sitemap URL (e.g., `https://example.com/media/sitemap.xml`).
  5. Monitor: Check Search Console for errors or warnings. Re-generate the sitemap after major content changes.

How to Judge If Your Sitemap Is Working

  • Check file accessibility: Open the sitemap URL in a browser—it should display XML content, not a 404.
  • Verify in Search Console: The sitemap status should show “Success” with indexed URLs.
  • Review coverage: Ensure all important pages (products, categories, CMS) are listed.
  • Look for errors: Search Console reports any URLs that failed to crawl or were excluded.

Common Mistakes

  • Not submitting the sitemap to Google Search Console after generation.
  • Using the wrong path or store view in multi-store setups, causing the wrong sitemap to be served.
  • Assuming a sitemap guarantees indexing—it only improves discovery.
  • Leaving generation settings misconfigured, so product or category URLs are missing from the sitemap.

Next step

FAQ

Does a Magento sitemap guarantee indexing?

No. It only signals URLs for discovery; indexing depends on page quality and crawl budget.

Where is the sitemap file stored in Magento 2?

By default in /media/ (e.g., https://example.com/media/sitemap.xml).

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.