How to Remove Image URL from sitemap.xml in Magento 2

How to Remove Image URL from sitemap.xml in Magento 2 4

As per Google, a sitemap can contain a maximum of 50000 URLs with a maximum size of 50 MB (Uncompressed). If you have a bigger website having thousands of URLs, you may require to exclude image URLs from the sitemap to fit the validation or you need to breakdown the list in multiple sitemaps. SEOs may want sometimes to focus only on crawling pages and not the images. It’s because Google automatically indexes images when it indexes the pages. And thus, you may want Google to focus on your pages prior to images. So, you need to remove image URL from sitemap.xml in Magento 2.

The easy-to-follow steps mentioned below will remove the image URLs and not allow search engine bots to crawl them!

Steps to Remove Image URL from sitemap.xml in Magento 2:

  1. Login to admin panel
  2. Navigate to Stores > Configuration > Catalog > XML Sitemap
  3. Expand Product Options
  4. Set “None” to Add Images into Sitemap

How to Remove Image URL from sitemap.xml in Magento 2

Can it be any simpler! 😄

Still, the readers can always discuss any issues with the solution in the Comments section below and I’d be happy to help.

Feel free to share the solution with fellow developers and SEOs via social media.

Thanks.

5
(based on 4 Reviews)

Sanjay is a co-founder at Meetanshi. He is a certified Magento developer who loves creating Magento E-commerce solutions. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply