The .well-known directory has been whitelisted in .htaccess. This makes Drupal compliant with RFC 5785 which establishes a .well-known URI location.
There are two separate sections of .htaccess that needed to change. To make these changes in a custom .htaccess file, use these two diffs as a guide:
http://cgit.drupalcode.org/drupal/commit/?id=9a283adf643b7e3ceaf6b92f1de...
http://cgit.drupalcode.org/drupal/commit/?id=b52ac5eb58ccea29dd906efd0e7...
Note that the second diff supersedes the corresponding change in the first, i.e. the final RewriteRule should look like:
RewriteRule "/\.|^\.(?!well-known/)" - [F]
Comments
Thanks for catching that!
Thanks for catching that!
In the future it's better to leave comments like that on the issue itself, where it's more likely to be noticed. I went ahead and added you to the issue (https://www.drupal.org/node/2408321) now.
Note that the above has now
Note that the above has now been fixed and the change record now contains the correct code.
Small bug
It should be
RewriteRule "(^|/)\.(?!well-known/)" - [F]because now it whitelists directories like./well-knownabctoo.Do you know that it whitelists sub-directories like
example.com/abc/.wellknown? It seems that RFC 5785 is talking only about "path prefix", ie.example.com/.wellknown.Correct is
RewriteRule /\.|^\.(?!well-known/) - [F]