

# iOS / https://cstan.io/?p=8651&lang=en
#PHP53, All-Inkl

# Disabling cache management
# that could cause problems with DAV requests
# Useful only for Apache servers, with AllowOverride All
# (ie, .htaccess files enabled)

# Allow HTTP headers with Apache/FastCGI
# See http://code.google.com/p/sabredav/wiki/Authentication#Apache_+_(Fast)CGI

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    RewriteBase /
    RewriteRule ^.well-known/carddav$ html/card.php [R,L]
    RewriteRule ^.well-known/caldav$ html/cal.php [R,L]

    # iOS / https://cstan.io/?p=8651&lang=en
    RedirectPermanent /.well-known/caldav http://servername.tld/cal.php
    RedirectPermanent /.well-known/carddav http://servername.tld/card.php

</IfModule>


<IfModule mod_expires.c>
	ExpiresActive Off
</IfModule>
