Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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

1 Reply

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.

 

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now