mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-21 01:54:23 +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>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
|
# PT is important if you are using an alias, it implies L
|
||||||
# Redirect /.well-known URLs
|
# 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
|
# Optionally: redirect /principals/users/ as well
|
||||||
RewriteRule ^/principals/users/(.*)$ /davical/caldav.php/$1 [NC,L]
|
RewriteRule ^/principals/users/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||||
RewriteRule ^/principals/resources/(.*)$ /davical/caldav.php/$1 [NC,L]
|
RewriteRule ^/principals/resources/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||||
RewriteRule ^/calendars/__uids__/(.*)$ /davical/caldav.php/$1 [NC,L]
|
RewriteRule ^/calendars/__uids__/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||||
RewriteRule ^/addressbooks/__uids__/(.*)$ /davical/caldav.php/$1 [NC,L]
|
RewriteRule ^/addressbooks/__uids__/(.*)$ /davical/caldav.php/$1 [NC,PT]
|
||||||
|
|
||||||
# Optionally: Put DAViCal in the root
|
# Optionally: Put DAViCal in the root
|
||||||
# NOTE: this will break other applications that rely on mod_rewrite!
|
# NOTE: this will break other applications that rely on mod_rewrite!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user