fix: fix nextcloud well-known in .htaccess

This commit is contained in:
Stefan Sterz 2019-02-20 18:38:14 +01:00
parent 93df7bc669
commit d6e4b47ee9
Signed by: sterzy
GPG Key ID: DAE2BE6432FB782A
1 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Redirect 301 /.well-known/carddav /owncloud/remote.php/carddav
Redirect 301 /.well-known/caldav /owncloud/remote.php/caldav
Redirect 301 /.well-known/carddav /cloud/remote.php/carddav
Redirect 301 /.well-known/caldav /cloud/remote.php/caldav
# block files and folders beginning with a dot, such as .git
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
@ -79,4 +79,4 @@ ExpiresByType text/x-javascript M604800
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
</IfModule>