Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
GELÖST

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

Avatar

Level 4

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

Themen

Anhand von Themen werden Community-Inhalte kategorisiert und Sie können so relevanten Inhalt besser finden.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 4

@arunpatidar Thanks for the information. 

 

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

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Community Advisor

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-c...

 

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

AEM LinksLinkedIn

Avatar

Korrekte Antwort von
Level 4

@arunpatidar Thanks for the information. 

 

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