Hi @aadhirara ,
Try below steps:
1. Enable Sitemap at the Right Page Level
Make sure the Sitemap Generator is enabled on the root page of your site.
- Go to AEM > Sites
- Select your root page (e.g., /content/mysite)
- Properties -> Advanced
- Check “Generate Sitemap” (and Sitemap Root if it’s the main entry point)
- Save & Publish the page
2. Dispatcher Filter Rule to Allow Sitemap
- Open your filter.rules file and add:
# Allow sitemap.xml and sitemap-index.xml
/0200 {
/type "allow"
/path "/content/*"
/selectors '(sitemap|sitemap-index)'
/extension "xml"
}
This rule ensures requests like /content/mysite/sitemap.xml and /sitemap-index.xml are allowed.
After updating, flush dispatcher cache and restart dispatcher if needed.
3. Check OSGi Configuration
Ensure the OSGi service com.adobe.cq.wcm.core.extensions.sitemap.internal.SitemapServiceImpl is active and not overridden.
Check via:
/system/console/components
4. Sitemap Accessible at Proper Path
Try:
https://author.yoursite.com/content/mysite.sitemap.xml
https://publish.yoursite.com/content/mysite.sitemap.xml
And if root-mapped:
https://www.yoursite.com/sitemap.xml
If it 404s:
Try accessing with .html first to verify page exists
Check if sitemap servlet is being invoked (use logs or dev tools)
5. Logs for Debugging
Enable debug logging for the sitemap service:
Go to /system/console/slinglog and add:
Log Level: DEBUG
Watch logs when accessing /sitemap.xml
Regards,
Amit