Jump to content

No slash required at the end


gordon.c

Recommended Posts

I think it's something just built into Apache.

 

 

Something basically like (pretend filePath contains the part after the URL...  For example http://somesite.com/folder/something would be folder/something):

 

if filePath exists {

    if filePath is a file {

        handle it as a file (what ever the default for a file with no extension is)

    }

    if filePath is a directory {

        if any index type file exists for filePath/, serve that

        else serve either a directory index or a 403

    }

}

else {

    404 error

}

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.