简体   繁体   中英

file not found in apache server : PHP

I have below directory structure in PHP application.

在此处输入图片说明

Last 2 files I can access it. but, when I try to open first 2 files, it says file not found. 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:

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.

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

will pull up the file

/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? try [0-9A-Z] instead of [AZ]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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