Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

questions on OOTB sitemap generator

Avatar

Level 9

question 1:

Do I need to customize the resourceTypes to include my custom ones? Or is the default value already there enough to cover all pages whose a descendent of "wcm/foundation/components/basicpage/v1/basicpage"?

 

example: my editable template has a resourceSuperType of "core/wcm/components/page/v1/page". And "core/wcm/components/page/v1/page" has a resourceSuperType of "wcm/foundation/components/basicpage/v1/basicpage"

 

2024-07-31 16_26_17-Adobe Experience Manager Web Console - Configuration and 36 more pages - Work - .jpg

 

question2:

since the URL to access the sitemap seems to be "not standard" (example: http://localhost:4502/content/mysite/en.sitemap.xml), does it mean I need to write some Apache rewrite rules so it's accessible using https://www.mysite.com/sitemap.xml? (or maybe it's easier to just use robots.txt to tell crawlers my sitemal URL?)

Thanks a lot.

1 Reply

Avatar

Community Advisor

Hi @jayv25585659 
Please check:

Answer 1: You need to provide a Sling resource type of en page; only then will en.sitemap.xml resolve to your page.

 

Answer 2: Yes and no. It depends on how the crawler will access the sitemap for crawling. I suggest removing internal AEM content paths from the sitemap so that both content and sitemap use the same content mapping.

Example URLs:
- https://site.ch/de-ch.sitemap-index.xml
- https://site.ch/de-ch.sitemap.xml
- https://site.ch/de-ch.sitemap.products-sitemap.xml
- https://site.ch/fr-ch.sitemap-index.xml
- https://site.ch/fr-ch.sitemap.xml



Arun Patidar