I have a strange thing happening with php files. As an example:
domain.com/test.php
domain.com/test
domain.com/test/some/other/directory/that/does/not/exist
All three of the above link structures will resolve at the test.php file. What causes this? Is there a setting in the php.ini file or the httpd.conf file or an .htaccess file that has a setting which controls this behavior? This does not happen with html files just php files.
The solution or reason that I found that causes this is a setting in the httpd.conf file that turns on multiviews. This can be disabled in an .htaccess file using the following.
Options -MultiViews
You probably have mod_rewrite turned on with a rule to do that.