How to create XML Sitemap and Robots in AEM? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
March 15, 2019

Hi,

You need to do sling mapping, you have to make sitemap.xml to your page. and same for robot.txt

Sitemap creation – Java and AEM development | Flexible Designs d.o.o.

make sure you generate xml or txt output in page set content type as xml/txt based on file.

response.setContentType("text/xml");

Arun Patidar
Preetpal_Bindra
Community Advisor
Community Advisor
March 26, 2020

Hello @arunpatidar 

can you suggest where the contentType("text/xml") be set?

I have 2 page page resource types, each has the "sling:resourceSuperType" set to "core/wcm/components/page/v2/page".

I am using the ACS Commons Sitemap Generator as per the instructions here,

https://adobe-consulting-services.github.io/acs-aem-commons/features/sitemap/index.html and 

http://www.flexibledesigns.rs/sitemap-creation/

 

One of the .sitemap.xml requests return text/html and another returns text/xml. I did not do anything specific for either case.

 

Please see the complete question and error i have posted here:

https://experienceleaguecommunities.adobe.com/t5/Adobe-Experience-Manager/ACS-Commons-Sitemap-Generator-error-No-renderer-for-extension/qaq-p/357209#M72988

Gaurav-Behl
Level 10
March 15, 2019

You may check this - Sitemap Generator

bhoang
bhoangAuthor
Level 4
April 17, 2019

Thanks you for your help.

Please help me. How to configuration

  • Shown in sitemap
  • Change Frequency (for Sitemap)
  • Priority (for Sitemap)
  • Search Engine Index Allowed (Robots.txt)

How to config them in AEM. I am using AEM 6.2.

Thanks & Best regards,

BienHV

Gaurav-Behl
Level 10
April 17, 2019

You'd need to extend/customize the available servlet for those properties

source -

acs-aem-commons/SiteMapServlet.java at master · Adobe-Consulting-Services/acs-aem-commons · GitHub