Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache HtAccess重写可以';找不到文件_Apache_.htaccess_Webserver - Fatal编程技术网

Apache HtAccess重写可以';找不到文件

Apache HtAccess重写可以';找不到文件,apache,.htaccess,webserver,Apache,.htaccess,Webserver,我有一个小的web应用程序,我正在部署到服务器上。但是,htaccess文件突然不起作用了(不是索引文件,而是当我转到一个url,比如/login)。它一直认为该文件不存在,但是,它显示为“不可归档”的文件确实存在。我用文件获取内容检查了错误显示的相对路径/home/sites/xxx.co.uk/public\u html/index.php,它显示了该文件 DirectoryIndex index.php Options -Indexes Options +FollowSymlinks R

我有一个小的web应用程序,我正在部署到服务器上。但是,htaccess文件突然不起作用了(不是索引文件,而是当我转到一个url,比如
/login
)。它一直认为该文件不存在,但是,它显示为“不可归档”的文件确实存在。我用
文件获取内容
检查了错误显示的相对路径
/home/sites/xxx.co.uk/public\u html/index.php
,它显示了该文件

DirectoryIndex index.php
Options -Indexes
Options +FollowSymlinks

RewriteEngine on

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

有人知道发生了什么吗?

对它进行了分类,这只是我的主机提供商的问题。该站点正在他们提供的测试url上进行测试(域名注册时),他们有一种奇怪的方法来识别您的文件夹(需要删除
/home/sites