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]
有没有人知道发生了什么事?