I would like to show an index.html page, that is shown before the user enter's my drupal site whenever http://www.domain.com/ is opened. However, it seems that Drupal's .htaccess file doesn't allow this. I've tried adding a condition that says that Drupal can only rewrite rules if the path isn't /, but that doesn't work (I guess the syntax is wrong):

RewriteCond %{REQUEST_FILENAME} !/

Any idea's on how to do this?

Comments

bb37’s picture

Don't know if the Front Page module will do what you want, but it might be worth a look.

eyos’s picture

The frontpage module indeed solves the problem. However, I'm still curious how to edit the .htaccess file so that it allows another page (like index.htm or .html) to be the first shown on directory access.

matt westgate’s picture

Change

# Set the default handler.
DirectoryIndex index.php

to

# Set the default handler.
DirectoryIndex index.html index.php