anasstouaticoder / magento2-module-sitemapremoveitem
The SitemapRemoveItem module provides easy way to remove unwanted elements from Magento 2 Sitemap
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.4.0||~8.1.0
- anasstouaticoder/magento2-module-base: ^1.1
- magento/framework: 103.0.*
- magento/module-sitemap: 100.4.4
README
Magento 2 Module AnassTouatiCoder SitemapRemoveItem
Remove unwanted Sitemap items based on their URI
``anasstouaticoder/magento2-module-sitemapremoveitem``
Main Functionalities
Provide easy way to remove unwanted sitemap rows.
Installation
* = in production please use the --keep-generated
option
install from composer 2
- In magento project root directory run command
composer require anasstouaticoder/magento2-module-sitemapremoveitem
- Enable the module by running
php bin/magento module:enable AnassTouatiCoder_SitemapRemoveItem
- Flush the cache by running
php bin/magento cache:flush
Zip file
- Unzip the zip file in
app/code/AnassTouatiCoder
- Enable the module by running
php bin/magento module:enable AnassTouatiCoder_SitemapRemoveItem
- Flush the cache by running
php bin/magento cache:flush
Configuration
Go to Store => Configution => Section Atouati Tools add Items that will be removed from SiteMaps
Specifications
This plugin gives the administrators the ability to clean up Sitemap from unwanted URLS rows.
Usage
In Back Office, go to Store => Configuration => ATOUATI TOOLS => General => URLs to remove from Sitemap.
Add unwanted uri to the table and save. Make sure to select URI Match Type that you needed: Contains removes one or more, equals removes one row).
- use case 1: URI => women/tops-women URI Match Type => Contains
- use case 2: URI => men/bottoms-men/pants-men.html URI Match Type => Equals