Create Magento 2 Sitemap in 11 Easy Steps

0

Sitemap is a plain text XML file that contains the link to all of the pages on your Magento 2 store. As we know, a sitemap helps search engine crawling bots in indexing of our store. It is specifically used to find the pages that might be ignored by web crawlers. It can also be configured to index images of the store. This results in good ranking positions.

Therefore, it is necessary to keep this page updated as frequently as the content on your store changes. It is also a good practice because it improves the SEO of your Magento store. In Magento 1.9x stores, this option was known as Google Sitemaps and it was located in the Catalog Menu. However in Magento 2, things have changed a bit.

To create a sitemap in Magento 2, follow the below steps:

Step 1: Login to your Magento 2 admin panel.

Magento 2 Login

Step 2: On the left sidebar, click on STORES.

Magento 2 Admin

Step 3: Inside Settings menu, pick Configuration.

Magento 2 Admin

Step 4: On the left panel, expand Catalog menu. Then, click XML Sitemap to see more options.

Magento 2 xml sitemap

Step 5: Expand the Categories Options section. Set Frequency to one of the options from the drop-down menu. You can also null out this function by picking Never.

Magento 2 Admin

In the Priority field, enter a value from 0.0 to 1.0. Zero (0.0) has the lowest priority.

Magento 2 Sitemap

Step 6: Now expand the Products Options section and do the necessary changes in the Frequency and Priority settings as needed. To include the images in the sitemap, set Add Images into Sitemap to All from the drop-down menu.

Magento 2 Sitemap

Step 7: Expand the CMS Pages Options section and do the necessary changes in the Frequency and Priority settings as needed.

Magento 2 Sitemap

Step 8: Expand the Generation Settings and set Enabled to Yes.

Magento 2 Sitemap

  • Set the specific Start Time on which you want the sitemap to be updated.

Magento 2 Sitemap

  • For the daily update, set Frequency to Daily.

Magento 2 Sitemap

  • Enter an email address in the Error Email Recipient field to receive notifications about the Sitemap update.

Magento 2 Sitemap

  • Select the sender from Error Email Sender drop-down menu.

Magento 2 Sitemap

  • Select the error email style and content in Error Email Template drop-down menu.

Magento 2 Sitemap

Step 9: Expand the Sitemap File Limits section. In the Maximum No of URLs per File box, enter the limit of URLs that can be included in the sitemap. By default, the max limit is 50,000. In the Maximum File Size box, enter the size limit in bytes that is allocated for the sitemap XML file. The default size is 10,485,760 bytes (or 10.48 MB).

Magento 2 Sitemap

Step 10: Expand the Search Engine Submission Settings section.  If you are using a robots.txt file to provide instructions to search engines that crawl your site, then set Enable Submission to Robots.txt field to Yes.

Magento 2 Sitemap

Step 11: When you are done, click the Save Config button.

Magento 2 Sitemap

Share.

About Author

Fayyaz is a Magento Community Manager at Cloudways - A Managed Magento Hosting Platform. He writes about Magento Tutorials at Magenticians as well as share his knowledge with the Magento Community. Fayyaz is a food lover and enjoys driving. You can email him at m.fayyaz@cloudways.com