I am trying to develop sitemap scheduler with apache sling sitemap, I just added this configuration in config.publish like this
{
"scheduler.name": "My Daily Sitemap Scheduler",
"scheduler.expression": "0 0 2 1/1 * ? *",
"searchPath": "/content/dumysite"
}
This configuration I didnt add in dispatcher/src/conf.dispatcher.d/filters/filters.any file.
# Allow AEM WCM Core Components sitemaps
/0200 { /type "allow" /path "/content/*" /selectors '(sitemap-index|sitemap)' /extension "xml" }
Do I need to add this configuration in order to generate sitemap.
Solved! Go to Solution.
Views
Replies
Total Likes
1. I just created scheduler configuration at /apps/weretail/config.publish/org.apache.sling.sitemap.impl.SitemapScheduler~weretail.cfg.json on author instance and published -
2. sitemap gets generated at /var/sitemaps/content/we-retail/us/sitemap.xml on publish instance as shown below as per scheduler timing-
Please check the json file name and searchPath at your end as @milind_bachani has suggested.
Please note that sitemap will be accessible from publish instance not from author.
Even I don't have dispatcher setup in my personal laptop but I am able to generate sitemap for we.retail(did the exercise).
Please refer Apache Sling Sitemap for AEM 6.5.11 and AEMaaCs – AEM Queries & Solutions (wordpress.com) and detail discussion Solved: Re: apache slign sitemap oak index - Adobe Experience League Community - 448358 it will help you.
Please let us know aem version with service pack.
I am using aem 6.5.11.0
1. I just created scheduler configuration at /apps/weretail/config.publish/org.apache.sling.sitemap.impl.SitemapScheduler~weretail.cfg.json on author instance and published -
2. sitemap gets generated at /var/sitemaps/content/we-retail/us/sitemap.xml on publish instance as shown below as per scheduler timing-
Please check the json file name and searchPath at your end as @milind_bachani has suggested.
Please note that sitemap will be accessible from publish instance not from author.
Hi @Vani1012 ,
You dont need to change the dispatcher configs unless the dispatcher is giving 404 while on publisher you are able to access the sitemap.
The searchPath you are using , is it a valid path ?
Thanks.
My site name is dumysite and I want to generate sitemap for the rootpage that is us page so that I given the path as /content/dumysite, is this correct?
Views
Likes
Replies