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

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
- Log in to Magento Admin.
- Go to Marketing > SEO & Search > Site Map.
- Click Add Sitemap.
- Enter filename: `sitemap.xml`.
- Choose path: `/media/` (default).
- Select store view (e.g., Main Website).
- Click Save & Generate.
- Verify the file at `https://example.com/media/sitemap.xml`.
Quick Start: 5 Steps to Set Up Your Sitemap
- Configure settings: Go to Stores > Configuration > Catalog > XML Sitemap. Set frequency and priority for products, categories, and CMS pages.
- Create the sitemap: In Marketing > SEO & Search > Site Map, add a new sitemap with filename `sitemap.xml` and path `/media/`.
- Generate the file: Click Save & Generate to create the XML file.
- Submit to Search Console: In Google Search Console, go to Sitemaps and enter the sitemap URL (e.g., `https://example.com/media/sitemap.xml`).
- 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
- Adobe Commerce documentation — Primary vendor documentation for sitemap creation and configuration in Magento/Adobe Commerce.
- Google Search Central — Authoritative source for how XML sitemaps work in Google Search.
- Google Search Console Help — Explains submitting and monitoring sitemaps in Search Console.
- MageWorx Magento 2 Sitemap Setup — Useful practical guide for Magento sitemap configuration and admin navigation.
Reviewed by Lucía Marín, Founding editor.