diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-12-30 10:47:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 10:47:48 +0100 |
commit | 599a9af7d6b0095aa774b626eed54a6e7e3a8286 (patch) | |
tree | 6304c6c194403c5c85a928769337160cf97db57a | |
parent | c62d73641a03ec575aa4b216898d7ae9d7170ee0 (diff) | |
parent | 98198e042ec27c8ba4b9601310a4d123f72b59b8 (diff) | |
download | nextcloud-server-599a9af7d6b0095aa774b626eed54a6e7e3a8286.tar.gz nextcloud-server-599a9af7d6b0095aa774b626eed54a6e7e3a8286.zip |
Merge pull request #24860 from nextcloud/bugfix/noid/well-known-htaccess
Make sure we properly ass well-known paths to index.php
-rw-r--r-- | .htaccess | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess index 8f13d050975..87feb31fd88 100644 --- a/.htaccess +++ b/.htaccess @@ -65,8 +65,8 @@ RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L] RewriteRule ^remote/(.*) remote.php [QSA,L] RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L] - RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.* - RewriteRule ^(?:\.|autotest|occ|issue|indie|db_|console).* - [R=404,L] + RewriteRule ^\.well-known/(?!acme-challenge|pki-validation) /index.php [QSA,L] + RewriteRule ^(?:\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L] </IfModule> <IfModule mod_mime.c> AddType image/svg+xml svg svgz |