AEM as a Cloud Service sitemap subdomains
Hi AEM Community
I have the following scenario
Brief description:
Customer has AEM as a Cloud Service with multiple subdomains configured.
The sitemap feature is enabled and also a customized class (MySiteMap.java) that extend the ResourceTreeSitemapGenerator abstract class from Sling.
One of the responsibility of the MySiteMap.java class is to remove the www. from the subdomains via code through custom regular expression
Customer has the following domain and subdomains configure:
1 - www.mycompany.com
2 - ensurance.mycompany.com
3 - supplychain.mycompany.com
Problem:
When the sitemaps are generated for these multiple domains the output produced is the following
for: 1 - www.mycompany.com
for: 2 - ensurance.mycompany.com
for: 3 -supplychain.mycompany.com
