Basically, standardize the names and always write the same in both source codes and files. The way, in your case, is to revise the code, and fix it.
If it is a "desperate measure", whatever is your own thing, turn everything down so you do not have to think too much.
Keep camelcase just what is a third-party library, or else when you upgrade, it will get complicated again.
In fact, always avoid filenames with accents and spaces, which are another source of problems.
Important: Solutions that use .htaccess
are used to store links that the end user browsing the site typed with wrong casing , not to sort names that have been entered wrong by the system author itself.