file not found in apache server : PHP

356 Views Asked by At

I have below directory structure in PHP application.

enter image description here

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}
2

There are 2 best solutions below

0
On BEST ANSWER

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.

0
On

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 [A-Z]