tags:

views:

45

answers:

3

i have a site that is on a darwin server.

i dont see any .htaccess.(i can see .htaccess file in a different site on the same server.)

yet it redirects /file to /file.php

how is this done?

+3  A: 

This could well be defined in the central httpd.conf file. .htaccess is only a local representation of Apache's central configuration.

Also, the .htaccess file could be in a folder above the web root.

Pekka
+3  A: 

In the httpd.conf or vhosts file, for the options under the domain MultiViews is most likely there. This is what causes it and is called Content Negotiation.

Brad F Jacobs
A: 

You should be able to confirm confirm it is Apache's MultiViews doing this by disabling it with

Options -MultiViews

in a .htaccess file in the directory in question. MultiViews can also cause issues with rewrites...

billythekid