404 only on Linux: file path case mismatch (Image.PNG vs image.png)
A file works on Windows or macOS but returns 404 on the Linux server because the name's capitalisation differs.
404 only on Linux server case sensitiveworks locally but 404 on production file name caseimage 404 case-sensitive pathImage.PNG vs image.png 404filename case mismatch 404 Meaning
Linux filesystems are case-sensitive, so /Images/Logo.PNG and /images/logo.png are different files. Rename files to lowercase, make references match exactly, and use a build step or CI check for case mismatches before deploying.
Common causes
- Different case in the link and the filename
- Developed on a case-insensitive OS
- Git ignoring case-only renames
- Uppercase extension (.JPG)
- Mixed-case folder names
⚡ Quick fix
- Make links and filenames match exactly (prefer lowercase)
- Rename with
git mvfor case-only changes - Add a CI check for case mismatches
Detailed fix by platform
Shell
- bash
git mv Images tmp && git mv tmp images find . -iname "logo.png"
How to diagnose
- Filename — Same case as link?
- OS — Linux server?
- Git — Recorded the rename?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in HTTP
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026