Skip to content

Commit 2e7ffa4

Browse files
authored
Add .well-known redirects to .htaccess (#194)
1 parent 532b381 commit 2e7ffa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ DirectoryIndex index.php
2020
<IfModule mod_rewrite.c>
2121
RewriteEngine On
2222

23+
# Add .well-known redirections
24+
RewriteRule ^\.well-known/carddav /dav/ [R=301,L]
25+
RewriteRule ^\.well-known/caldav /dav/ [R=301,L]
26+
2327
# Determine the RewriteBase automatically and set it as environment variable.
2428
# If you are using Apache aliases to do mass virtual hosting or installed the
2529
# project in a subdirectory, the base path will be prepended to allow proper

0 commit comments

Comments
 (0)