AEMaaCS Robots.txt points to to default Adobe one, not the custom one
Hello,
We are implementing custom robots.txt which will be maintainable by content authors. the file is located in: "/content/dam/mycompany/config/robots.txt"
We implemented following Dispatcher changes and deployed to AEMaaCS env:
1. filters.any
# Allow robots.txt
/0104 { /type "allow" /url "/content/dam/mycompany/config/robots.txt" /extension "txt"}
/0105 { /type "allow" /url "/robots.txt" /extension "txt"}
2. To open file inline, rather than downloading it: in dispatcher/src/conf.d/available_vhosts
<LocationMatch "^/content/.*/robots\.txt$">
Header unset "Content-Disposition"
Header set Content-Disposition inline
</LocationMatch
3. rewrite.rules:
RewriteCond %{REQUEST_URI} ^/robots\.txt$
RewriteRule .* /content/dam/mycompany/config/robots.txt [PT,L]
Still, the Adobe default robots.file is shown, not our custom one.
what seems to be missing?
Appreciate your help!
Regards,
Shruti