Hello,

I created a directory under my htdocs, and put an index.html file in it. Normally, a web server should detect index.html and display it, but on my Drupal install it says "page not found".

For example, if I have www.mysite.com/dir

if there is an index.html file inside /dir I would expect the webserver to return that content.

However, with Drupal, if I enter www.mysite.com/dir it gives the "page not found" message. If I type in the direct path (www.mysite.com/dir/index.html) then it displays the file.

How can I tell Drupal that certain directories are normal HTDOC type directories, not Drupal content?

Thanks!!

Comments

.carey’s picture

Jaza wrote (http://drupal.org/node/16084):

I was having this problem too - I have various html pages stored in subfolders on my site, and I was getting errors when I tried to access www.mysite.net/subfolder also. What I did was edit this line of .htaccess:

# Set the default handler to index.php:
DirectoryIndex index.php

Like so:

# Set the default handler to index.php (and index.html):
DirectoryIndex index.php index.html

Since the index page for all my subfolders is index.html, this was all I needed to do - all the errors went away...

For further info, please see the rest of the post (2nd from top).

I hope this helps.

Carey

alchemista’s picture

Thank you, that worked for me as part of it! The other part now is figuring out why Drupal won't prompt a user for password if authentication is on in a subdirectory, but that's a separate issue...