Jump to content

[SOLVED] Weird internal redirect thing!


uhmcastillo

Recommended Posts

This has been driving me insane, and I can find no documentation anywhere on it.  I think that's mainly because I'm not entirely sure how to describe it.

 

So here we go:

Running Apache 1.3

Php 4

 

If you go to the URL:

 

http://mydomain.com/admin

 

If the file admin.html exists in the base directory, and assuming there's no admin directory.....  It automatically serves you that file!!

 

How the hell do I turn this off, or configure it?  It's driving me insane!

 

This functionality is actually what I desire.  I ended up writing a complex rewrite to do it on a dev server, just to find out that this  existed on the production system already.  Now if I can just control it...

 

If someone could clarify, it will prevent me from setting my server alight...

 

Thanks!

 

-m

 

Link to comment
https://forums.phpfreaks.com/topic/64467-solved-weird-internal-redirect-thing/
Share on other sites

Ok, so far... no one here seems to know what I'm talking about.

 

Can anyone atleast confirm that their servers have a similar functionality?  This is driving me insane, since I can't move forward without figuring this out...

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

 

Orig. Ref: http://www.phpfreaks.com/forums/index.php/topic,146673.0.html

 

-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.