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.
SOLVED

Domain sitemap In AEM 6.5

Avatar

Level 2

I have multiple country specific sitemap.xml (/us/en-us.sitemap.xml , /us/es-us.sitemap.xml) which is created using OSGI configuration (com.adobe.acs.commons.wcm.impl.SiteMapServlet).

Now I need a index sitemap at root of the domain (localhost:4502/sitemap.xml) having all the market's sitemap.

Any leads will be helpful how to create this.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @RinkiShahi ,

 

We have one checkbox in the page properties to generate a sitemap.xml for that page and its descendants. So If sitemap is generated for the (/us/en-us.sitemap.xml , /us/es-us.sitemap.xml) then on root page you can generate one more sitemap which will include all the site pages available for indexing.

For example , generate sitemap checked for we-retail root page. This property is available in advance tab of page properties.

we-retail-root-page-stiemap.PNG

 

Also, I found the below resource very helpful. Hope it works for you as well. Please take a look.

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/seo/sitemaps.html 

 

Thanks,

Ravi Joshi

View solution in original post

5 Replies

Avatar

Level 2

That article is again creating for country specific , not domain root sitemap.xml

Avatar

Employee Advisor

Hi @RinkiShahi ,

 

This is already accessible on root using "sitemap-index" selector.

---- 

 

For instance,

I have enabled sitemap generation in Advanced Properties for US & CA in WKND sites including the root page.

 

Now when I try to access :
http://localhost:4502/content/wknd.sitemap-index.xml

It yields:

milind_bachani_0-1665491229555.png

The implementation is done using Apache Sling Sitemap – Sitemap Generator Manager configuration.

 

Reference : https://aemsimplifiedbynikhil.wordpress.com/2021/12/01/apache-sling-sitemap-for-aem-6-5-11-and-aemaa...

 

Hope this helps, thanks!

 

Avatar

Correct answer by
Level 5

Hi @RinkiShahi ,

 

We have one checkbox in the page properties to generate a sitemap.xml for that page and its descendants. So If sitemap is generated for the (/us/en-us.sitemap.xml , /us/es-us.sitemap.xml) then on root page you can generate one more sitemap which will include all the site pages available for indexing.

For example , generate sitemap checked for we-retail root page. This property is available in advance tab of page properties.

we-retail-root-page-stiemap.PNG

 

Also, I found the below resource very helpful. Hope it works for you as well. Please take a look.

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/seo/sitemaps.html 

 

Thanks,

Ravi Joshi

Avatar

Level 2

Hello All, 

one more question related to this, how can I externalize disallow or allow directives in Robots.txt file. "externalizer.domain" is only working for sitemap directives.