Robots.txt file isn't accessible on publish environment AEM as a cloud service | Adobe Higher Education
Skip to main content
JeffreyVSpringbok
Level 2
March 22, 2023

Robots.txt file isn't accessible on publish environment AEM as a cloud service

Hi

 

We are implementing a robots.txt file that needs to be fetched from the dam (for several sites with several languages).

The first issue that we are facing is that we can't access the txt file on the publish environment with the direct path e.g. /content/dam/robots/<sitename>/en_gb/robots.txt.

 

When we try to put it on a link on a button same result (href attribute gets removed).
The same approach works fine with pdf files.

 

Does someone knows if we missed something regarding the filetypes that can't be published/accessed on the publish environment?

We are using AEM as a cloud service version : 2022.11.9850.20221116T162329Z.

 

 

Thanks

 

Ce sujet a été fermé aux réponses.

1 commentaire

arunpatidar
Community Advisor
Community Advisor
March 22, 2023
JeffreyVSpringbok
Level 2
March 22, 2023

Hi Arun

 

We have enabled the right rules in the dispatcher but we still have the same issue.
As well if I bypass the dispatcher  by accessing the publish url: 

https://publish-pXXXXX-eXXXXX.adobeaemcloud.com/content/dam/robots/<sitename>/en_gb/robots.txt

It still gives a 404


If I try to access a jpg file it works.

arunpatidar
Community Advisor
Community Advisor
March 22, 2023