bridystone/baikal/work/html/.htaccess - Htaccess File

bridystone/baikal/work/html/.htaccess

# 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

# redirect https
#RewriteEngine On
#RewriteCond %{SERVER_PORT}   !^443$
#RewriteRule  (.*)  https://%{HTTP_HOST}/$1   [L]

# see: https://www.kuketz-blog.de/baikal-kontakte-und-kalender-selbst-verwalten/
#RedirectMatch 301 ^/.well-known/caldav /cal.php
#RedirectMatch 301 ^/.well-known/carddav /card.php

# alternative see: https://github.com/fruux/Baikal/issues/119
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule /.well-known/carddav /card.php [R,L]
RewriteRule /.well-known/caldav /cal.php [R,L]

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

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

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_URI, SERVER_PORT

Comments

Apache