Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Site Map is generating but it is not excluding the path which i am providing through sitemapscheduler config.

Avatar

Level 1

Site Map is generating but it is not excluding the path which i am providing through sitemapscheduler config as shown below screenshot.
And I am using Service package 13. Please suggest how can resolve this issue

Minchu1_1-1693562699945.png


 
Updating Media

 


Thanks in Advance 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Minchu1,

You can choose from one of the following options:

Option 01.
Set the Robots Tags value to "noindex." This action will remove the page from the sitemap. This approach is more useful in the case of individual pages.

Option 02.
Exclude path using the Apache Sling Sitemap - Scheduler. Include the path (excluding .html) within the Excluded Paths configuration in the Scheduler Config. Additionally, Enable the "Generate Sitemap" option in the Page Properties, as it works only when the path itself is a Sitemap Root. This action will remove child pages as well.

Mahedi Sabuj

MS-29LinkedIn

View solution in original post

4 Replies

Avatar

Community Advisor

Could you please add exclude resources path without .html

 

https://github.com/apache/sling-org-apache-sling-sitemap/blob/513df31fae34bf592d0449a77fca3a7f891676... 

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 1

I have added excludePaths without .html but still it not excluding that path from sitemap.xml.

Minchu1_0-1693570414171.png

 

Avatar

Correct answer by
Community Advisor

Hi @Minchu1,

You can choose from one of the following options:

Option 01.
Set the Robots Tags value to "noindex." This action will remove the page from the sitemap. This approach is more useful in the case of individual pages.

Option 02.
Exclude path using the Apache Sling Sitemap - Scheduler. Include the path (excluding .html) within the Excluded Paths configuration in the Scheduler Config. Additionally, Enable the "Generate Sitemap" option in the Page Properties, as it works only when the path itself is a Sitemap Root. This action will remove child pages as well.

Mahedi Sabuj

MS-29LinkedIn

Avatar

Level 2

if you use AEM ACS Commons sitemap generator or AEMaaCS sitemap generator, you can select "hideInNav", which is a configuration used to remove it from being generated. This is one alternative you can try for removing the path from Site map.