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,758
  • 4
  • 29
  • 50
Robin Rodricks
  • 560
  • 2
  • 12
  • 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
  • 96,255
  • 29
  • 175
  • 230