While using the Sitemaps you can show Google the importance of new pages and make the search engine better understand the site structure. The faster the indexing of new pages, the shorter the queue time of your new products in Google will be. Moreover, if you want your XML Sitemaps to be more flexible for setting, you can implement the Magento 2 XML Sitemap extension to make the grade.
How to create Magento 2 Sitemap?
To create and configure Sitemap in Magento 2 keep up to with the next steps:
Choose ‘STORES’ on the left sidebar:
Select ‘Configuration’ here:
Then click XML Sitemap to see all the options:
Pick ‘Category Options’ and set ‘Frequency’ to one of the options there.
The ‘Priority’ should be valued (0.0 to 1.0):
Weighting page type is supported by Magento 2. Any page type can be assigned priority: categories, products, CMS pages, etc. In this the Sitemap is similar with Magento 1: go to > Stores/ Settings/ Configuration/ Catalog/ XML Sitemap.
Take the same steps with the ‘Products Options’/ ‘CMS Pages Option’> ‘Frequency’> ‘Priority';
To attach images to the Sitemap choose ‘Add Images to Sitemap’ > ‘All’ from the drop-down menu:
In the ‘Generation Settings’ set ‘Enables’ to ‘Yes’:
Also, set the ‘Start Time’ for future update and set ‘Frequency’ to ‘Daily’ if you want it to be renewed in this regime.
Using cron job the Sitemap can be generated daily/weekly/monthly at any time you like it.
To make it you need to go to 'System'>'Configuration'>'Advanced'>'System'>'Cron (Scheduled tasks)':
!Mind the automatic generation is created in case the Sitemap has been already set by hand.
Return to the previous settings, put in an ‘Error Email Sender/Recipient’ and choose an appropriate style for it from the drop-down menu.
Click the ‘File Limits Section’. Enter your limit of XML Sitemap URLs in the ‘Maximum No of URLs per File’. Don’t forget to mention the ultimate file size in the ‘Maximum File Size’ box:
Press the ‘Save Config’ button.
!When using robots.txt file set ‘Enable Submission to Robots.txt’ to ‘Yes’.
Besides, we offer you our new module, which allows for much easier and more effective work with the Sitemaps.
There are no category and product URLs like it was in Magento 1.x.x.
Once you have found your sitemap URL, add it to your robot.txt.
You can add the sitemap manually.
Mind all the manual changes will be overwritten once you save robots settings in the Admin Panel.