Sign up to receive email updates and to hear what's going on with our magazine!
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.
Step 2: On the left sidebar, click on STORES.
Step 3: Inside Settings menu, pick Configuration.
Step 4: On the left panel, expand Catalog menu. Then, click XML Sitemap to see more options.
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.
In the Priority field, enter a value from 0.0 to 1.0. Zero (0.0) has the lowest priority.
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.
Step 7: Expand the CMS Pages Options section and do the necessary changes in the Frequency and Priority settings as needed.
Step 8: Expand the Generation Settings and set Enabled to Yes.
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).
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.
Step 11: When you are done, click the Save Config button.
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 email@example.com