/.well-known/security.txt giving 404 error | Community
Skip to main content
AshwiniSathe1
Level 3
July 25, 2025
Solved

/.well-known/security.txt giving 404 error

  • July 25, 2025
  • 1 reply
  • 383 views

Hi Team,

 

I have a requirement to enable the /.well-known/security.txt for all of my domains, I did added filter rules and rewrite rules for the same but it is blocking at dispatcher end.

 

/0002 { /type "allow" /method "GET" /url '/.well-known/security.txt' }

 

RewriteRule /.well-known/security.txt$  /content/Project-name/.well-known/security.txt

Can you suggest the approach to enable it. 

 

Thanks in advance.

 

Thanks and Regards,

Ashwini

Best answer by AshwiniSathe1

@arunpatidar Thanks for the information. 

 

This issue is resolved by rearranging the filter rule in filter.any file.

1 reply

arunpatidar
Community Advisor
Community Advisor
July 25, 2025

Hi @ashwinisathe1 

You can follow the same guideline as robots.txt

https://medium.com/@veena.vikraman19/aem-gyaan-time-a-guide-to-configuring-robots-txt-for-aem-as-a-cloud-service-84f4b39fbd38

 

You don't need to create a path with ., you can create file with well-know e.g. 

/content/Project-name/well-known/security.txt

 and map it using rewrite rule

RewriteRule ^/.well-known/security.txt$  /content/Project-name/well-known/security.txt
Arun Patidar
AshwiniSathe1
AshwiniSathe1AuthorAccepted solution
Level 3
July 28, 2025

@arunpatidar Thanks for the information. 

 

This issue is resolved by rearranging the filter rule in filter.any file.