apache ignoring file extensions

Discussion in 'Apache' started by rob_v, Feb 24, 2009.

  1. #1
    Ok- any help here is appreciated.

    I have a client that has a setting somewhere that is causing this type of behavior.

    I have 2 files in an empty directory called test.html and test.php

    if I go to mydomain.com/test_dir/test

    The data in the test.html file displays.

    Can someone tell me the setting to disable this behavior?
    If I put in test_dir/test - I want a 404 b/c there is no file.
    I want to have to explicitly say test.html or test.php.

    Any help would be great!

    Thanks
    _Rob
     
    rob_v, Feb 24, 2009 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    Do you have a .htaccess file in that folder or any of it's parents which is causing this behaviour?
     
    tolra, Feb 24, 2009 IP