Jump to content

Same file and directory names with MultiViews in Apache


ryanb

Recommended Posts

[Windows XP, PHP5, Apache 2]

Hello,

Is there a way so you can have a file and a directory of the same name, both in the same directory, and still use MultiViews and reference files without using extensions?

For example, a file [color=green]test.php[/color] and a directory [color=green]test/[/color] are in the same location.  I would like to be able to use something like, [color=green]<a href="test">[/color] to show [color=green]test.php[/color], not [color=green]test/[/color] the directory (which is what it does now).  Is there a way to make Apache look for a file before a directory, or am I just going to have to make them different names?  Thank you very much!

Ryan

[attachment deleted by admin]
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.