Did anyone ever try to setup a sabredav caldav server in laravel? Sabredav needs the calendarserver to be access at "calendarserver.php/" <-- trailing slash
Sabredav needs a trailing slash which is trimmed by laravel. I tried to alter the htaccess file:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/calendarserver\.php
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
But it seems, that I also need to configure a route, which again will trim the slash. Basically, I just want everyone to able to access the /calendarserver.php/ path without laravel interfering. Is there any clean way to accomplish that?
Any help would be greatly appreciated!
Thanks.