Sitemap.xml not getting generated in live site | Community
Skip to main content
New Participant
April 4, 2025
Solved

Sitemap.xml not getting generated in live site

  • April 4, 2025
  • 2 replies
  • 904 views

Hi Team,

           we are not seeing sitemap.xml in our live site,which is showing as blank xml document as shown in below screenshot. however we are able to download the sitemap.xml in production publisher. Kindly please help on this to resolve this issue.

 

 

Best answer by arunpatidar

HI @raja-t 

Could you please check if sitemap is cached somewhere dispatcher/CDN?

2 replies

konstantyn_diachenko
New Participant
April 4, 2025

Hi @raja-t ,

 

How do you request your sitemap? Do you have any rewrite rule on Apache?

 

Usually, sitemap generated by Apache Sling Sitemap Generator is reachable by /content/{sitemap-root-path}.sitemap.xml. That's why we have to create a rewrite rule to get this sitemap.

 

Could you please request your sitemap on live site with any parameter to ignore CDN cache?

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn DiachenkoCheck out AEM VLT Intellij plugin
arunpatidar
arunpatidarAccepted solution
New Participant
April 4, 2025

HI @raja-t 

Could you please check if sitemap is cached somewhere dispatcher/CDN?

Arun Patidar
giuseppebaglio
New Participant
April 4, 2025

For fixing the issue in the dispatcher you can leverage ACS Commons Dispatcher Flush Rules which allows you to define simple rules for targetted flushing of files cached by Dispatcher.

konstantyn_diachenko
New Participant
April 4, 2025

Hi @giuseppebaglio ,

 

With proper configuration, Apache Sling Sitemap Generator send invalidate request to dispatcher from publisher out-of-the-box. No need extra configuration.

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn DiachenkoCheck out AEM VLT Intellij plugin