diff --git a/.htaccess b/.htaccess index 7bf8759e38397..d149521cbb761 100644 --- a/.htaccess +++ b/.htaccess @@ -55,7 +55,8 @@ RewriteEngine on RewriteCond %{HTTP_USER_AGENT} DavClnt - RewriteRule ^$ /remote.php/webdav/ [L,R=302] + RewriteCond %{REQUEST_METHOD} OPTIONS + RewriteRule .* - [R=401,L] RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L] RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]