fix: fix nextcloud well-known in .htaccess
This commit is contained in:
parent
93df7bc669
commit
d6e4b47ee9
1 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue