Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-28 17:36:23 +0300
committerJulius Härtl <jus@bitgrid.net>2020-12-29 13:30:53 +0300
commit98198e042ec27c8ba4b9601310a4d123f72b59b8 (patch)
tree03f69447e0c3808a67dadd1fee010d37b1380e6e /.htaccess
parent86e6f0716203c9fa1032b6fa6484b5b935d61a6e (diff)
Make sure we properly ass well-known paths to index.php
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess4
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