Can not access robots.txt

  Written by The Jahia Team
 
Sysadmins
   Estimated reading time:
7.1 7.2

A static file robotos.txt  is present in tomcat/webapps/ROOT but the URL https://www.mydomain.com/robots.txt returns a 404.

Answer

You will need to add the following line in your jahia.properties

seoReservedUrlPrefixes=robots.txt

And then restart DX. If you need to allow several files, then separate the filenames with a coma.

seoReservedUrlPrefixes=robots.txt,sitemap.xml

 

Related links