有没有人试图在laravel中设置sabredav caldav服务器? Sabredav需要日历服务才能访问 " calendarserver.php /" < - 尾随斜杠
Sabredav需要一个由laravel修剪的尾部斜线。我试图改变htaccess文件:
<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>
但看起来,我还需要配置一条路线,再次修剪斜线。基本上,我只是希望每个人都能够访问/calendarserver.php/路径而无需laravel干扰。有没有干净的方法来实现这一目标?
非常感谢任何帮助!
感谢。