0

Can I configure one specific directory on my webserver to use an atypical default file such as "default.php" instead of "index.php"? Do I have to create a ".htaccess" file in that dir?

yagmoth555
  • 16,300
  • 4
  • 26
  • 48
Robin Rodricks
  • 540
  • 2
  • 10
  • 27

1 Answers1

7

Yep, put the following in a .htaccess file:

DirectoryIndex default.php

And that will apply to that directory, and I think all subdirectories.

This assumes you're using Apache; other webservers may have other conventions.

womble
  • 95,029
  • 29
  • 173
  • 228