diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-30 16:22:36 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-30 16:22:36 +0200 |
commit | 5fdc1716d23c4b584ccca20ab66bb6d4d6c95b48 (patch) | |
tree | 93069a8255f04231510c6e35f717b30df4f7754c /.htaccess | |
parent | 4f0abd910cae4e122ca8db2a9e6f588ac8df039a (diff) | |
parent | 6cc50ecfabdb534d4b9fef80667b26abfb80e8a9 (diff) | |
download | nextcloud-server-5fdc1716d23c4b584ccca20ab66bb6d4d6c95b48.tar.gz nextcloud-server-5fdc1716d23c4b584ccca20ab66bb6d4d6c95b48.zip |
Merge pull request #15042 from wolfgangkarall/master
.htaccess RewriteRules: use permanent redirect for .well-known/(cal|card)dav, add 'L' flag
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess index 8c1cefb89c2..115a02495c8 100644 --- a/.htaccess +++ b/.htaccess @@ -38,8 +38,8 @@ RewriteEngine on 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] -RewriteRule ^\.well-known/carddav /remote.php/carddav/ [R] -RewriteRule ^\.well-known/caldav /remote.php/caldav/ [R] +RewriteRule ^\.well-known/carddav /remote.php/carddav/ [R=301,L] +RewriteRule ^\.well-known/caldav /remote.php/caldav/ [R=301,L] RewriteRule ^apps/calendar/caldav\.php remote.php/caldav/ [QSA,L] RewriteRule ^apps/contacts/carddav\.php remote.php/carddav/ [QSA,L] RewriteRule ^remote/(.*) remote.php [QSA,L] |