404 HTTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

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.

Exact message you may see 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
Seen on: HTTP Linux Nginx

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

  1. Make links and filenames match exactly (prefer lowercase)
  2. Rename with git mv for case-only changes
  3. Add a CI check for case mismatches

Detailed fix by platform

Shell

  1. bash
    git mv Images tmp && git mv tmp images
    find . -iname "logo.png"

How to diagnose

  1. Filename — Same case as link?
  2. OS — Linux server?
  3. 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:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

102 — HTTP 102 Processing (HTTP)102201 — HTTP 201 Created (HTTP)201404 — HTTP 404 Not Found (HTTP)404404 — Soft 404: page returns 200 for missing content (HTTP)404404 — 404 on JS/CSS assets after a new deploy (HTTP)404404 — 404 only with or without a trailing slash (HTTP)404404 — 404 because the URL is double-encoded (%2520 instead of %20) (HTTP)404DHCPDISCOVER ... No DHCPOFFERS received — Networking: dhclient: DHCPDISCOVER on eth0 ... No DHCPOFFERS received. No working leases in persistent database - sleeping. (Networking)DHCPDISCOVER ... No D…404

Explore the map of this error Full error map →

🧠 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.