Skip to content

Commit

Permalink
Make sure we properly ass well-known paths to index.php
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Dec 28, 2020
1 parent 86e6f07 commit 1de612c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
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)/.*
RewriteCond %{REQUEST_URI} ^/\.well-known/.*
RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/?.*
RewriteRule ^\.well-known/.* /index.php [QSA,L]
RewriteCond %{REQUEST_URI} !^/\.well-known/.*
RewriteRule ^(?:\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>
<IfModule mod_mime.c>
Expand Down

0 comments on commit 1de612c

Please sign in to comment.