Jump to content

http://mysite.com/foo opens http://mysite.com/foo.php


chris__

Recommended Posts

Hi guys,

 

I think I have a problem with my apache. When I access http://mysite.com/foo, I usually expect an error that foo cannot be found or something. However, instead of that, http://mysite.com/foo.php will be opened. If foo.php does not exists, this behaviour does not occur.

 

This is breaking my applications and mod_rewrite doesn't work properly anymore. (No, this problem has nothing todo with mod_rewrite)

 

Any ideas?

 

BTW: I'm usign the most recent version of apache and debian. All default settings.

 

Regards, chris

Put the following in a htaccess file:

 

Options -MultiViews

 

Thats what's causing the issue. FYI - the same happens on my etch server. I had MultiViews included in my vhosts not really knowing what they referred to!

 

Ref: http://www.gerd-riesselmann.net/archives/2005/04/beware-of-apaches-multiviews

 

-steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.