Magento 2

Magento, a leading e-commerce platform, offers a plethora of features to enhance the online shopping experience. One such feature is the ability to create a sitemap, which is crucial for search engine optimization (SEO). In this guide, we’ll walk you through the process of creating a sitemap in Magento 2, ensuring it’s SEO-friendly and addresses common queries related to sitemaps in Magento.

Understanding the Importance of Sitemaps

In the vast digital landscape, ensuring that your e-commerce website stands out and is easily navigable by both users and search engines is paramount. This is where a sitemap comes into play. A sitemap, in its essence, is a roadmap of your website, outlining the structure and indicating the important pages. For e-commerce platforms like Magento 2, having a sitemap is not just a good-to-have feature; it’s a necessity.

Magento 2: A Brief Overview

Magento 2, the upgraded version of the Magento e-commerce platform, is renowned for its flexibility, scalability, and extensive features. It’s designed to provide online merchants with a seamless shopping cart system, along with control over the look, content, and functionality of their online store. But, like any robust platform, navigating its myriad features can sometimes be daunting

The Need for a Sitemap in Magento 2

For online store owners, the primary goal is to ensure that their products are easily discoverable, both by users and search engines. A sitemap aids in this by providing search engines with a list of all the pages on the website, ensuring efficient crawling and indexing. Moreover, with the dynamic nature of e-commerce websites where products are constantly added or removed, having an updated sitemap becomes even more crucial.

What is a Sitemap?

A sitemap is a file that lists all the pages of a website, making it easier for search engines to crawl and index the site. It’s an essential tool for SEO as it ensures that search engines are aware of all the pages on your site, including any new or updated ones.

Why is a Sitemap Important for Magento Stores?
  • Improved Search Engine Indexing: Search engines use sitemaps as a reference when crawling your site.
  • Better Site Navigation: It helps users find the content they’re looking for quickly.
  • Up-to-date Content Discovery: Whenever you add new products or pages, the sitemap ensures they’re indexed promptly.
Step-by-Step Guide to Creating a Sitemap in Magento 2
  1. Log in to Your Magento Admin Panel

Start by logging into your Magento 2 admin dashboard.

  1. Navigate to the Sitemap Section

From the dashboard, go to Stores > Configuration > Catalog > XML Sitemap.

  1. Create a New Sitemap

Click on the Add Sitemap button. Here, you’ll need to provide details like the sitemap’s filename (usually “sitemap.xml”) and the path (typically the root directory).

  1. Configure Sitemap Settings

Magento 2 offers various settings to customize your sitemap, such as setting the frequency of updates and prioritising certain pages.

  1. Generate the Sitemap

Once you’ve configured the settings, click on the Save & Generate button. Magento 2 will create the sitemap based on your configurations.

Addressing Common Queries

How do I get a sitemap for Magento 2?

Follow the steps mentioned above. Once generated, you can access your sitemap by navigating to your domain followed by the sitemap filename, e.g., ““.

How to upload sitemap in Magento 2?

Magento 2 automatically saves the sitemap in the specified directory. However, if you’ve created a sitemap externally, you can upload it via FTP to your root directory.

How to create an HTML sitemap in Magento 2?

While the XML sitemap is for search engines, an HTML sitemap benefits users. To create one, you’ll need to use a Magento 2 extension like “Dynamic HTML Sitemap for Magento 2”.

Where is the sitemap XML in Magento 2?

By default, the XML sitemap is located in the root directory of your Magento installation. The typical path is “”.


Creating a sitemap in Magento 2 is a straightforward process, but it’s crucial for SEO. By following this guide, you ensure that search engines effectively index your Magento store, leading to better visibility and increased organic traffic. Always keep your sitemap updated, especially when adding new products or pages, to maintain optimal SEO performance.

Frequently Asked Questions (FAQs) about Creating a Sitemap in Magento 2
  1. What is a sitemap and why is it important for my Magento 2 store?

A sitemap is a file that lists all the pages of your website, making it easier for search engines to crawl and index. For Magento 2 stores, a sitemap ensures that search engines are aware of all product pages, blog posts, and other important content, leading to better search engine visibility.

  1. How often should I update my sitemap in Magento 2?

It’s advisable to update your sitemap whenever you add new products, pages, or make significant changes to your website. Magento 2 has features that can automate sitemap updates at regular intervals.

  1. Can I create multiple sitemaps for different sections of my Magento 2 store?

Yes, Magento 2 allows you to create multiple sitemaps for different sections or store views. This can be especially useful for large e-commerce stores with a vast number of products or multi-language stores.

  1. How do I submit my sitemap to search engines like Google?

Once you’ve created your sitemap, you can submit it to Google using the Google Search Console. Simply add your sitemap URL (e.g., “”) in the ‘Sitemaps’ section of the console.

  1. I have both an XML and HTML sitemap. What’s the difference?

An XML sitemap is primarily for search engines. It helps them crawl and index your site more efficiently. An HTML sitemap, on the other hand, is designed for users, helping them navigate your website and find the content they’re looking for.

  1. Is there a limit to the number of URLs I can include in my Magento 2 sitemap?

While there’s no specific limit set by Magento 2, search engines like Google have a limit of 50,000 URLs or a file size of 50MB (uncompressed) for a single sitemap.

  1. Do I need any extensions to create a sitemap in it?

Magento 2 has built-in functionality to create XML sitemaps. However, if you want additional features or need to create an HTML sitemap, there are several Magento 2 extensions available to assist you.

  1. My sitemap isn’t being crawled by search engines. What could be the issue?

Ensure that your sitemap is correctly formatted and doesn’t have any broken links. Also, check your site’s robots.txt file to make sure it’s not blocking search engines from accessing your sitemap.

  1. Can I prioritise certain pages in it?

Yes, Magento 2 allows you to set priority levels for different types of pages (e.g., product pages, category pages) in your sitemap. This tells search engines which pages you deem more important.

  1. How can I check if there are any issues with my sitemap?

You can use tools like Google Search Console to monitor the status of your sitemap and see if there are any errors or issues that need addressing.


This error message is only visible to WordPress admins

Error: No feed found.

Please go to the Instagram Feed settings page to create a feed.