简体   繁体   English

在apache服务器中找不到文件:PHP

[英]file not found in apache server : PHP

I have below directory structure in PHP application. 我在PHP应用程序中具有以下目录结构。

在此处输入图片说明

Last 2 files I can access it. 我可以访问最后2个文件。 but, when I try to open first 2 files, it says file not found. 但是,当我尝试打开前2个文件时,显示未找到文件。 I checked it all files are there. 我检查了所有文件。 And same permissions given to all files. 并赋予所有文件相同的权限。

I don't know what's wrong in here. 我不知道这里有什么问题。

This is conf file: 这是conf文件:

RewriteEngine on
RewriteMap manglelow int:tolower
RewriteCond $1 [A-Z]
RewriteRule ^/(.*)$ /${manglelow:$1}

manglelow converts the URL to lower case this means that your files need to be lower case to work. manglelowURL转换为小写,这意味着您的文件需要小写才能正常工作。

/assets/img/logos/logo-lg.pnG /assets/img/logos/logo-lg.pnG

will pull up the file 将拉起文件

/assets/img/logos/logo-lg.png /assets/img/logos/logo-lg.png

just rename your files to be lowercase. 只需将文件重命名为小写即可。

Is the issue here that the Reweite only matches for files that start with letter but the other files start with numbers? 这里的问题是Reweite仅匹配以字母开头的文件,而其他文件以数字开头的文件吗? try [0-9A-Z] instead of [AZ] 尝试使用[0-9A-Z]而不是[AZ]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM