Hello,

I thought that Drupal should only show the 404 error if a path is requested that does not actually have a file available there. I'm finding that an old index.shtml file in a 'games' directory does not get loaded correctly now that I have Drupal installed.

For instance, the user enters http://www.example.com/games/

It should show the index.shtml file in that directory, no? Instead Drupal is returning the 404 page I configured in settings. Why?

Thanks a lot for your help.

rob

Comments

cog.rusty’s picture

Try adding an .htaccess file in the games directory, containing the line

DirectoryIndex index.shtml

jetsetter’s picture

That worked. Thank you very much.

Can anyone suggest a line that will have drupal look first for index.shtml in all directories in my domain prior to loading the drupal 404, or do I have to do this with a custom .htaccess in each dir?

rob

cog.rusty’s picture

Yes. In Drupal's .htaccess there is a line

DirectoryIndex index.php

Make it

DirectoryIndex index.php index.shtml

You can also add any other index files you might use in directories under Drupal's. Then you won't need the separate .htaccess files. It just seemed cleaner to me to leave Drupal's .htaccess alone (so that it can be overwritten by updates etc).