iphone.htaccessios7caldavcarddav

Why does iOS 7 not work with Baikal server?


Since upgrading to iOS 7, my iPhone could no longer access my Baikal Card DAV server. On the project's GitHub page, there are several issues open regarding this issue, but none could help me getting my iPhone talk to the server. How can I make this work?


Solution

  • The important thing is to add these lines to your .htaccess

    RewriteEngine On
    # iOS 7 (and later)
    RewriteRule /.well-known/carddav /card.php [R,L]
    RewriteRule /.well-known/caldav /cal.php [R,L]
    # Mac OS X 10.10
    Redirect /.well-known/carddav /card.php
    

    You then setup the Cal DAV as described in the installation instructions. For Card DAV make sure to follow these steps.

    1. Server your.server.url (without http[s]-prefixes)
    2. User name and password
    3. Make sure the Account URL in the advanced settings looks like this: https://your.server.url/card.php/principals/username