2012-07-24 45 views
1

我有一个小型的网络应用程序,我正在部署到服务器。但是,突然间htaccess文件不工作(不是索引文件,但是当我去到一个url,如/login)。它始终保持该文件不存在,但是,它显示为“unfindable”的文件肯定存在。我检查了由file_get_contents错误显示的相对路径/home/sites/xxx.co.uk/public_html/index.php,并显示该文件。HtAccess重写无法找到文件

DirectoryIndex index.php 
Options -Indexes 
Options +FollowSymlinks 

RewriteEngine on 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*[^/])/?$ index.php?route=$1 [L,QSA] 

有没有人知道发生了什么事?

回答

0

排序它,它只是与我的托管服务提供商的东西。该网站正在通过他们提供的测试网址进行测试(域名注册时),他们有一个奇怪的方法来识别您的文件夹(需要删除/home/sites