2016-11-17 13:00:19 +01:00
|
|
|
# EGroupware CalDav/CardDAV and ActiveSync support via .htaccess
|
2010-09-25 11:08:37 +02:00
|
|
|
#
|
2016-11-17 13:00:19 +01:00
|
|
|
# Please note:
|
|
|
|
# - this file needs to be copyied as .htaccess to your document root
|
|
|
|
# to support CalDAV/CardDAV or ActiveSync synchronisation.
|
|
|
|
# - your Apache web server needs to be setup to read .htaccess files and
|
|
|
|
# allow use of the RewriteEngine directive (AllowOverride FileInfo).
|
2010-09-25 11:08:37 +02:00
|
|
|
# - you need to replace /egroupware with your EGroupware URL path eg. /egw
|
2016-11-17 13:00:19 +01:00
|
|
|
# - commented out last directiv can be used to redirect from just the domain to
|
|
|
|
# /egroupware/ to facilitate EGroupware login in default subdirectory.
|
2010-09-25 11:08:37 +02:00
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteBase /
|
|
|
|
|
2016-11-17 13:00:19 +01:00
|
|
|
# Enable ActiveSync protocol support via eSync app
|
|
|
|
RewriteRule ^Microsoft-Server-ActiveSync /egroupware/activesync/index.php [L,QSA]
|
|
|
|
|
|
|
|
# CalDAV/CardDAV autodetection
|
2010-09-25 11:08:37 +02:00
|
|
|
RewriteRule ^.well-known/(caldav|carddav)$ /egroupware/groupdav.php/ [R]
|
2016-11-17 13:00:19 +01:00
|
|
|
# redirect PROPFIND or OPTIONS request on root to EGroupware CalDAV/CardDAV handler
|
2010-10-19 15:42:06 +02:00
|
|
|
RewriteCond %{REQUEST_METHOD} ^(PROPFIND|OPTIONS)$
|
2016-11-17 13:00:19 +01:00
|
|
|
RewriteRule ^$ /egroupware/groupdav.php/ [R]
|
2011-08-02 18:37:22 +02:00
|
|
|
# iOS 4.3+ calendar requires that to autodetect accounts
|
2016-11-17 13:00:19 +01:00
|
|
|
RewriteRule ^(principals/users/.*)$ /egroupware/groupdav.php/$1 [R]
|
|
|
|
|
|
|
|
# redirect root to EGroupware under /egroupware
|
|
|
|
#RewriteRule ^$ /egroupware/ [R]
|