Unpublished pages in AEM are being included in sitemap.xml | Community
Skip to main content
JonathanBurke
October 17, 2023
Solved

Unpublished pages in AEM are being included in sitemap.xml

  • October 17, 2023
  • 2 replies
  • 888 views

Has anyone else experienced unpublished pages in AEM appearing in sitemap.xml? I only want published pages to be included. My website uses the Apache Sling Sitemap Module to generate the sitemap.xml file... Not sure if the issue is related to the Sitemap Module itself, or if it's a configuration in AEM... If anyone has some insights on how to fix this, I would love to hear how you got it resolved.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DPrakashRaj

Sitemap.xml is generated dynamically and might be stored on your dispatcher cache. Can you check if you are seeing the cached sitemap.xml. Also, check 

Sitemap scheduler OSGi configuration to check the cron expression for the frequency.

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/seo/sitemaps.html?lang=en

2 replies

DPrakashRaj
Community Advisor
DPrakashRajCommunity AdvisorAccepted solution
Community Advisor
October 18, 2023

Sitemap.xml is generated dynamically and might be stored on your dispatcher cache. Can you check if you are seeing the cached sitemap.xml. Also, check 

Sitemap scheduler OSGi configuration to check the cron expression for the frequency.

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/seo/sitemaps.html?lang=en

kautuk_sahni
Community Manager
Community Manager
October 19, 2023

@jonathanburke Did you find the suggestions from @dprakashraj helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni