Forum Moderators: phranque
The current behavior I'm try to stop is as follows:
If I put foo.php in the root of test.dev, visiting test.dev/foo and test.dev/foo/ both access foo.php. As well, if I change foo.php to foo.html it can be accessed via test.dev/foo but not test.dev/foo/. I want to make it so there is no rewriting happening and these files can only be accessed by calling them directly (e.g. test.dev/foo.php or test.dev/foo.html).
Is there something in the default install that may be causing this? What's the best way to track it down?
Options -MultiViews
AcceptPathInfo Off
mod_dir will append a trailing slash to /foo if /foo/ exists as a directory.
If foo.php is defined as DirectoryIndex, then you may be getting an interaction with AcceptPathInfo, but I can't really be sure.
Jim