This module is used for magento 2 sitemap xml enhancements. This module is mainly contains following features.
- Ability to exclude CMS Pages from Sitemap XML
- Ability to exclude Category Pages from Sitemap XML
- Ability to exclude Product Pages from Sitemap XML
- Ability to exclude Product Images from Sitemap XML
- Include custom PWA Pages to Sitemap XML
To install via composer, simply run:
composer require aligent/magento2-sitemap-extension
`Stores -> Configuration -> Aligent -> Sitemap -> Exclude CMS Pages from Sitemap`.
`Content -> Pages -> Edit -> Sitemap -> Show in Sitemap`.
-
Set
Exclude CMS Pages from Sitemap
configuration field value to "Yes" -
Set
Show in Sitemap
CMS page(s) value to "No"
`Stores -> Configuration -> Aligent -> Sitemap -> Exclude Category Pages from Sitemap`.
`Catalog -> Categories -> Sitemap -> Show in Sitemap`.
-
Set
Exclude Category Pages from Sitemap
configuration field value to "Yes" -
Set
Show in Sitemap
Category attribute value(s) to "No"
`Stores -> Configuration -> Aligent -> Sitemap -> Exclude Product Pages from Sitemap`.
`Catalog -> Products -> Edit -> Search Engine Optimization -> Show in Sitemap`.
-
Set
Exclude Product Pages from Sitemap
configuration field value to "Yes" -
Set
Show in Sitemap
Product attribute value(s) to "No"
`Stores -> Configuration -> Aligent -> Sitemap -> Exclude Product Images from Sitemap`.
-
Set
Exclude Product Images from Sitemap
configuration field value to "Yes"
`Stores -> Configuration -> Aligent -> Sitemap -> Include PWA Pages to Sitemap`.
`Stores -> Configuration -> Aligent -> Sitemap -> Sitemap Base Url`.
`Stores -> Configuration -> Aligent -> Sitemap -> PWA Pages Url Key`.
- Set
Include PWA Pages to Sitemap
configuration field value to "Yes" - Define url key's for PWA pages using
PWA Pages Url Key
configuration table - Define pwa site url for
Sitemap Base Url
configuration.