Before you continue, ensure you meet the following requirements:
- You have installed Magento 2.
Run the following commands in Magento 2 root folder:
composer require magepow/sitemapexclusion
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
- It allows you to exclude specific or certain Category/Product/CMS page links from sitemap.xml of your site.
- It allows you to exclude duplicate and unwanted URLs from the sitemap.xml.
- There is an attribute "Exclude from Sitemap" added to each of the category/Product/CMS pages which can be set YES/NO to include/exclude a certain category, product and static page links from Google site map.
- It a great admin tool.
- It fully supports multistore.
- User-friendly interface.
- Easy to install and manage.
- Config product.
Login to Magento Admin > Catalog > Products => Click a product in Exclude from Sitemap, choose yes/no will hide or show link product in XML Sitemap.
- The same config part product config category and cms page also.
Login to Magento Admin > Catalog > Categories => Click a product in Exclude from Sitemap, choose yes/no will hide or show link category in XML Sitemap.
Login to Magento Admin > Content > Pages => Click edit a cms page in Exclude from Sitemap, choose yes/no will hide or show link cms page in XML Sitemap.
Login to Magento Admin > Marketing > Site Map => Click Add site map > Save and click link site map will show google site map.
If this project help you reduce time to develop, you can give me a cup of coffee :).