How to generate a sitemap in Magento 2?

Member

by mabelle , in category: SEO , a year ago

How to generate a sitemap in Magento 2?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by dortha , a year ago

@mabelle 

To generate a sitemap in Magento 2, follow these steps:

  1. Login to your Magento admin panel.
  2. Go to Stores > Configuration.
  3. Under Catalog, click on XML Sitemap.
  4. In the Generation Settings tab, set Enabled to Yes to enable the sitemap generation.
  5. Specify the Frequency at which you want the sitemap to be updated.
  6. Set Priority for each type of URL in the sitemap.
  7. Enter the maximum number of URLs to include per sitemap file in the Maximum No of URLs per File field.
  8. Specify the starting and ending date for the sitemap generation in the Starting from and Ending at fields respectively.
  9. Select Store View for which you want to generate the sitemap.
  10. Click on Save Config to save the changes.


After saving the configuration, the sitemap will be automatically generated based on the specified settings. You can access the sitemap by visiting /sitemap.xml in your Magento installation.