Hi Team,
I am trying to create sitemap.xml file for my AEM sites using org.apache.sling.sitemap Api on AEM as Cloud Service,
Also i am able to genrate sitemap file, but the challenge, I am facing is
I have multi brands sites on same domain,
Like i have www.CAP.edu and www.SAT.edu
The sitemap.xml file I am getting from my logic is:
1. For cap brand site
<url>
<loc>/content/cap</loc>
<lastmod>2024-08-29T10:57:56.314Z</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>/content/cap/en</loc>
<lastmod>2024-08-30T08:33:53.617Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
2. For Sat brand site
<url>
<loc>/content/sat</loc>
<lastmod>2024-08-30T08:55:14.693Z</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>/content/sat/linktemptest</loc>
<lastmod>2023-09-22T12:10:02.475Z</lastmod>
<changefreq>yearly</changefreq>
<priority>0.8</priority>
</url>
But i want there should be domain name in each sitemap file.
Expected Result :
1. For cap site
<url>
<lastmod>2024-05-10</lastmod>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
<url>
<lastmod>2024-04-30</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>
2. For sat brand site
<url>
<lastmod>2024-05-09</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>
<url>
<lastmod>2024-05-09</lastmod>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>