Expand my Community achievements bar.

SOLVED

Sitemap.xml not getting generated in live site

Avatar

Level 2

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.

RajaT_0-1743745383119.png

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

HI @Raja-T 

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

Arun Patidar

AEM LinksLinkedIn

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

HI @Raja-T 

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

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 9

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.

Avatar

Community Advisor

Hi @giuseppebag ,

 

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 Diachenko



Check out AEM VLT Intellij plugin


Avatar

Level 2

Thanks Arunpatidar, its cache issue, after clearing its its works well.

Avatar

Community Advisor

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 Diachenko



Check out AEM VLT Intellij plugin