How to auto generate a sitemap for SPA pages that donot exist in AEM | Community
Skip to main content
Level 2
December 26, 2023

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

  • December 26, 2023
  • 1 reply
  • 942 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
December 27, 2023

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.