Hi,
I have a requirement to create dynamic URLs that aren't available as pages in AEM. We're generating these URLs from the backend and displaying them on a page. Currently, I've created a page (test-sitemap.html) with a component that includes a "Generate" button. When users click this button, the URLs are created in the Java backend and displayed on the test-sitemap.html page.
Now, I need to add these generated URLs to the main sitemap.xml. Could you please help me with the process of linking these URLs to the main sitemap.xml?
Thank you!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @maturubhanu,
To integrate your dynamically generated URLs into the main sitemap.xml, you'll need to modify the sitemap generation process in AEM. This involves creating a custom service that fetches your dynamic URLs from the backend and merges them with the existing URLs collected from AEM pages. Once implemented, update the sitemap configuration to include this custom service. Ensure thorough testing to confirm that all URLs are correctly added to the sitemap.
Feel free to reach out if you need more detailed guidance on any specific step.
Regards,
Monalika Kapoor
Technical Support Consultant | Adobe
Hi @MonalikaKapoor ,
Thanks for the reply Monalika Kapoor.
At present we are using OOB feature(default Adobe) for Sitemap url's generation.
Can you explain little bit more on the service class where the backend dynamic url's will merge with the existing sitemap url's.
Need some information on how to write the logic for this, Can you give brief about the logic. I am bit new to this. Can you please provide some info on this.
Thanks for the response Monalika.
Thanks,
Bhanu M.
If you want to customize or extend the OOTB sitemap generator, refer this - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/overview/seo-and...
@maturubhanu Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes