duanmei4149 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?

  • 写回答

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]
    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥20 找驱动QTR2774-SU-IBM版本驱动
  • ¥15 NeRF的代码复现以及人工智能入门
  • ¥15 centos如何做一个可以让ikuai连接的openvpn
  • ¥15 Protege 中的Entities下面的界面删除了如何复原
  • ¥15 scrapy爬虫求帮
  • ¥15 imageEnView绘图问题
  • ¥15 关于#python#的问题:您好可以加您一下联系方式吗,在复现的时候确实有点问题难以解决
  • ¥15 联想电脑重装系统时无法发现硬盘
  • ¥15 MATLAB与UR10e实体机械臂建立通讯
  • ¥15 c++题需要快一点不用opencv