WHAT IS SITEMAP IN MAGENTO 2?

A good rank or position in the search engines is the desire of all Magento e-commerce stores; and using the sitemap is a simple way to support SEO by letting those search engines crawl and index each page in your site. In other words, a sitemap is a plain text XML file consisting of links to all pages, which are pivotal since the web scrawlers often overlook a number of pages.

Besides, Magento allows us to generate the sitemap.xml file which is saved to your installation’s root directory. In this tutorial, we will show you how to configure it in the back-end step-by-step.

HOW TO SET UP SITEMAP IN MAGENTO 2?

There are just 4 simple steps to generate a sitemap for your Magento 2 store. Let’s get started!

1st step: Set Frequency and Priority for updates

Go the Admin Panel, navigate to STORES and choose Configuration (under Settings)

(Admin Panel => STORES => Configuration)

On the left panel, please tap CATALOG and select the XML Sitemap in the dropdown.

Next, expand the Categories Options section on the right panel. Then, set the frequency for the category updates (Always/ Hourly/ Daily/ Weekly…). It is recommended to update your sitemap regularly to catch up with the changes of the site content.

Also, you must set up Priority for the category updates by entering a value in the range from 0.0 to 1.0 (smaller number means higher priority).



Similarly , please expand the Product Options & the CMS Page Options to set Frequency and Priority for these sections.

2nd step: Move to General Settings

Firstly, you must expand the General Settings section.

Secondly, choose Yes in the Enabled field.

Thirdly, you must set specific time for updating.

Fourthly, enter the email address of person who will receive possible notification of errors throughout the update process.

Fifthly, choose the Error Email Sender & Error Email Template.

3rd step: Complete the Sitemap File Limits

Similar to the previous sections, you must expand the Sitemap File Limits section. Then, it asks you to set the maximum number of URLs included in the sitemap per file as well as the maximum file size (in byte) allocated.





4th step: Finish the Search Engine Submission Settings

Set the only field Enable Submission to Robots.txt to Yes. Last but not least, save the configuration.



We have shown you basic definition of the sitemap in Magento 2 and more importantly, how to configure it in the back-end menu. If you have any problems when following this tutorial, be free to ask us by leaving a comment below. See you in the next tutorial!



See More Our Magento “How To” Series:

How To Config RSS Feeds In Magento 2

How To Create And Manage Newsletters In Magento 2

How To Create And Manage Coupon Codes In Magento 2

How To Create New Cart Price Rule In Magento 2

How To Create New Catalog Price Rule In Magento 2

(1 votes, average: 5.00 out of 5)

votes, average:out of 5)