Apache Xsendfile不能与RewriteEngine一起使用

时间:2013-08-21 15:08:19

标签: php apache mod-rewrite yii x-sendfile

我正在尝试在我的Apache服务器中实现xSendFile。但是,我发现与RewriteEngine和xsendfile存在冲突。

RewriteEngine on
RewriteCond %{HTTP_HOST} ^abc\.com$ [NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [R=301,L]

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

# otherwise forward it to index.php
RewriteRule . index.php

现在,每次我使用xsendfile时,它都会给我:

  

在此服务器上找不到请求的URL /index.php。

有什么想法吗?

0 个答案:

没有答案
相关问题