summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorWolfgang Karall <github@karall-edv.at>2015-03-19 21:31:50 +0100
committerWolfgang Karall <github@karall-edv.at>2015-03-19 21:31:50 +0100
commit6cc50ecfabdb534d4b9fef80667b26abfb80e8a9 (patch)
treecbb427f3b13151e763a68fcd2d2d21016ce97e10 /.htaccess
parent2a8c3798a8e43e1215c476815c3f7fa79d5ba91f (diff)
downloadnextcloud-server-6cc50ecfabdb534d4b9fef80667b26abfb80e8a9.tar.gz
nextcloud-server-6cc50ecfabdb534d4b9fef80667b26abfb80e8a9.zip
use permanent redirect for .well-known/(cal|card)dav, add 'L' flag
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess4
1 files changed, 2 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess
index 5e24a35743d..7e18c96b0dd 100644
--- a/.htaccess
+++ b/.htaccess
@@ -24,8 +24,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]