Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How to auto generate a sitemap for SPA pages that donot exist in AEM

Avatar

Level 2

i want pages that donot exist in aem get crawled . the data for loading these page is not stored in AEM, but rather the in backend API that feeds the Single Page App under /example/ and /example/something.html is a internalRedirect in AEM so the pages dont really exist. how do I get generate sitemap for these pages

1 Reply

Avatar

Level 3

TL;DR Dont do from AEM. 

 

You are trying to generate sitemap for pages generated by non-aem application. Its easier to split into content-sitemap.xml (generated by AEM) and products-sitemap.xml generated by your BE application and merge using sitemap-index.xml. Normal practice for huge websites running pages with diverse applications. Its cleaner to maintain multiple sitemaps. 

 

If you still compulsory need AEM only to generate sitemap, you have to hit API to pull URLs from BE and generate. Not advisable.