Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Dispatcher configuration

Avatar

Level 4

Hi,

 

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"
}

I didnt add dispatcher configuration in filters.any, rewrite.rules, will sitemap works without dispatcher configuration. 

9 Replies

Avatar

Level 10

HI @Vani1012 ,

Yes, you don't need to have any specific rules other than the re-write rules for the sitemap. No entry in filter is required. other than opening the .xml extension.

Also, you will need dispatcher entries only in case you are using a domain. For localhost you can test it without any dispatcher entry.

Avatar

Level 4

Hi Anish,

 

I am not having rewrite.rules in dispatcher,do I need to manually create that file.

Avatar

Level 10

No need if you are using your localhost. It will be only needed if you are using domain i.e. www.abc.com/xx/xx/xx.sitemap.xml 

What is the url you are using to access the sitemap?

Avatar

Level 4

Hi @anish-s ,

 

I am using this url http://localhost:4504/content/dumysite/us.sitemap.xml

I am getting correct output, but when I tried at publish instance the page isnt even loading http://localhost:4503/content/dumysite/us.sitemap.xml

Us page is available at publish instance but us.sitemapxml isnt at all loading, PFAScreenshot (67).png

Avatar

Level 10

Can you verify if "Generate sitemap" property is present on the publish node using crx/de in publish

Avatar

Level 4

Hi @anish-s ,

 

Can you please explain where Can I find Generate sitemap property on publish node

Actually sitemap.xml will generate at /var/sitemaps/content/<project-name>/<page>/sitemap.xml right,but for me the var folder also didnt generate at publish instance.

Avatar

Level 10

In page properties you check the "Generate sitemap" property in author and then replicate it. Make sure your property is stored on the page properties in publish crx/de. screenshot below.

Screen Shot 2022-04-21 at 10.44.01 PM.png

 

Also, Please check the video in this article. https://experienceleague.adobe.com/docs/experience-manager-learn/sites/seo/sitemaps.html?lang=en

It explains about all the configuration you need to have in order to generate the sitemap.

Avatar

Level 4

Hi @anish-s ,

 

Yeah I checked that property in page properties, it  is there in author as well as in publish instance , PFAScreenshot (68).png

Avatar

Level 10

Try restarting the server post all the configurations and the check if it works.