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
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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