made directory be public and put in changes to allow for multiple
directory index files and directories with no trailing slash