In AEM OOTB Sitemap I am unable to get the XML | Community
Skip to main content
Level 6
June 6, 2023
Solved

In AEM OOTB Sitemap I am unable to get the XML

  • June 6, 2023
  • 3 replies
  • 1173 views

I am using the OOTB sitemap generator that works with the scheduler.

I am Using AEMaaCS SPA. On /content/sample/en-us.sitemap.xml, I am trying to hit on the publisher. It gives a 404 error, but on /var/sitemap, I can view the available node entry.

 

 

 

I even tried /content/sample/en-us-sitemap.xml it is giving 404. How to make that work?

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 Vaibhavi_J

Hi @ronnie09 ,

You need to allow the path in the dispatcher.

 

# Allow AEM WCM Core Components sitemaps
/0200 { /type "allow" /path "/content/*" /selectors '(sitemap-index|sitemap)' /extension "xml" }

 

For more details, you can check the below thread where the detailed solution is discussed.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/404-error-while-accessing-sitemap-xml-using-apache-sling-sitemap/m-p/449097 

3 replies

Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
June 6, 2023

Hi @ronnie09 ,

You need to allow the path in the dispatcher.

 

# Allow AEM WCM Core Components sitemaps
/0200 { /type "allow" /path "/content/*" /selectors '(sitemap-index|sitemap)' /extension "xml" }

 

For more details, you can check the below thread where the detailed solution is discussed.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/404-error-while-accessing-sitemap-xml-using-apache-sling-sitemap/m-p/449097 

Community Advisor
June 6, 2023

Hi @ronnie09 

"SitemapServlet" in publish '/system/console/configMgr' should be configured for required resource types.

 

 

rawvarun
Community Advisor
Community Advisor
June 6, 2023