2011-11-11 09:49:25 +01:00
|
|
|
# EGroupware CalDav or CardDAV support for Apple apps (OS X and iOS)
|
2010-09-25 11:08:37 +02:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# This file can be copyied as .htaccess to your document root
|
|
|
|
# to support Mac or iPhone clients to autodetec CalDAV and CardDAV
|
|
|
|
# (currently Addressbook does NOT allow to specify our groupdav.php
|
|
|
|
# URL manually).
|
|
|
|
#
|
|
|
|
# Please note:
|
|
|
|
# - your Apache web server needs to be setup to read .htaccess files and
|
|
|
|
# allow use of the RewriteEngine directive (AllowOverride FileInfo).
|
|
|
|
# - you need to replace /egroupware with your EGroupware URL path eg. /egw
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteBase /
|
|
|
|
|
|
|
|
RewriteRule ^.well-known/(caldav|carddav)$ /egroupware/groupdav.php/ [R]
|
2010-10-19 15:42:06 +02:00
|
|
|
RewriteCond %{REQUEST_METHOD} ^(PROPFIND|OPTIONS)$
|
2010-10-20 21:33:27 +02:00
|
|
|
RewriteRule ^/$ /egroupware/groupdav.php/ [R]
|
2011-08-02 18:37:22 +02:00
|
|
|
|
|
|
|
# iOS 4.3+ calendar requires that to autodetect accounts
|
|
|
|
RewriteRule ^(/principals/users/.*)$ /egroupware/groupdav.php$1 [R]
|