2015-09-02 16:34
浏览 44


I'm trying to implement SabreDav into CakePHP (3.0). I've put the calendarserver.php file from the SabreDav package into my cake webroot. Now I'm able to access http://localhost/myproject/calendarserver.php . This page contains a link, which redirects me to http:://localhost/myproject/calendarserver.php/principals . Now the problem is when I click the link Cake tells me that the PrincipalsController is missing. I don't need any controller and want to handle the url after my calendarserver.php file without cake.

I've changed my .htaccess like the solution of CakePHP .htaccess mod_rewrite configuration to exclude a particular folder/url , but the same error appears again.

I also tried to copy the sabre folder one steph higher than the webroot (in the project folder) and modify my .htacces to

RewriteCond %{REQUEST_URI} !^/? (sabre)/(.*)

Any ideas?

图片转代码服务由CSDN问答提供 功能建议

我正在尝试将SabreDav实现为CakePHP(3.0)。 我把SabreDav包中的calendarserver.php文件放到了我的蛋糕webroot中。 现在我可以访问 http://localhost/myproject/calendarserver.php 。 此页面包含一个链接,该链接将我重定向到http :: //localhost/myproject/calendarserver.php/principals。 现在问题是当我点击链接Cake告诉我 PrincipalsController缺失时。 我不需要任何控制器,并且想要在没有蛋糕的calendarserver.php文件之后处理网址。

我已经改变了我的.htaccess,就像 CakePHP .htaccess mod_rewrite配置以排除特定文件夹/网址 ,但同样的错误再次出现。

我还尝试将saber文件夹复制一个高于webroot的steph(在项目文件夹中)并将我的.htacces修改为 \ n

RewriteCond%{REQUEST_URI}!^ /? (军刀)/(。*)


  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douyakan8924 2015-09-02 16:40

    Try using the following entry in your .htaccess file and see if it helps:

    RewriteCond %{REQUEST_URI} ^/(sabre).* [NC]
    解决 无用
    打赏 举报

相关推荐 更多相似问题