How to Add sitemap.xml file in Magento 2

Magewallet | Magento 2 Extensions, Themes & Solutions

How to Add sitemap.xml file in Magento 2

Sitemaps allow website owners to inform search engines what pages on their website are available for crawling. Do not worry. You do not need to manually enter every single URL from your website in order to create your sitemap. Magento 2 comes bundled with the ability to generate a Google sitemap. Google sitemaps are XML files that tell Google’s webmaster tools where your site’s content is.

Steps to add google sitemap to Magento 2 website

1. Log in to Magento admin panel

2. Go to Marketing -> Sitemap

Marketing Sitemap Magento 2


3. Click on “Add Sitemap” button.

4. Enter filename, Path and select store view

Add Sitemap Magento 2


Note: Path must be writable by the file system.

5. Click on Save & Generate.

Manage Sitemap Magento 2


Magento will save your sitemap file on your selected path automatically.

In order to confirm successful operation, Run your site URL to browser.
For example http://www.example.co.nz/[Path]/[XML Filename]

That’s it.

Enjoy Magento! Enjoy Magewallet!!

admin

1 Comment

Mage Lover

34 mins ago

Thanks for sharing this tutorial. Your post can become more better if you can add screenshot of each steps. I have seen the tutorial on the same topic but the big difference which I have found is the screenshots: https://magenticians.com/create-magento-2-sitemap/

Leave Comment

Newsletter

Latest Tweets