I believe this is due to options MultiViews
being enabled in your Apache. Disable it by placing this line at the top:
Options -MultiViews
- Option
MultiViews
is used byApache's content negotiation module
that runs beforemod_rewrite
and and makes Apache server match extensions of files. So/file
can be in URL but it will serve/file.php
.