mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-15 03:44:24 +00:00
Merge branch 'patch-1' into 'master'
add PT to follow alias See merge request davical-project/davical!40
This commit is contained in:
commit
e02c8e37bb
@ -26,13 +26,14 @@ Alias /davical /usr/share/davical/htdocs
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# PT is important if you are using an alias, it implies L
|
||||
# Redirect /.well-known URLs
|
||||
RewriteRule ^/\.well-known/(.*)$ /davical/caldav.php/.well-known/$1 [NC,L]
|
||||
RewriteRule ^/\.well-known/(.*)$ /davical/caldav.php/.well-known/$1 [NC,PT]
|
||||
# Optionally: redirect /principals/users/ as well
|
||||
RewriteRule ^/principals/users/(.*)$ /davical/caldav.php/$1 [NC,L]
|
||||
RewriteRule ^/principals/resources/(.*)$ /davical/caldav.php/$1 [NC,L]
|
||||
RewriteRule ^/calendars/__uids__/(.*)$ /davical/caldav.php/$1 [NC,L]
|
||||
RewriteRule ^/addressbooks/__uids__/(.*)$ /davical/caldav.php/$1 [NC,L]
|
||||
RewriteRule ^/principals/users/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||
RewriteRule ^/principals/resources/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||
RewriteRule ^/calendars/__uids__/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||
RewriteRule ^/addressbooks/__uids__/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||
|
||||
# Optionally: Put DAViCal in the root
|
||||
# NOTE: this will break other applications that rely on mod_rewrite!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user