Normally DirectoryIndex is used like
Code:
DirectoryIndex index.html index.php
This is especially useful when using
Code:
Options -Indexes
Well this can also be used like this
Code:
DirectoryIndex https://secure.example.com/login.php
This redirects all requests for
https://secure.example.com/ or
https://secure.example.com to
https://secure.example.com/login.phpCool huh? But you should actually just do
Code:
DirectoryIndex login.php
The first example only comes in handy when you want to force
http://www.example.com requests to a different domain like
https://secure.example.com. Like if they both point to the same folder but are served on :443 and :80