11-07-2009, 06:34 PM
|
#4 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
Not always, the default file that is loaded is called the "DirectoryIndex". Your server (I'm guessing Apache) will use what are called .htaccess files.
When apache receives the request for a page it looks for the closest .htaccess file (often they can be cached in RAM) and uses those guidelines to display the correct page and headers.
If you want to change what default page is loaded just put this in a file called ".htaccess" in the directory you want to change. Note: You will not be able to just rename a file to ".htaccess" on Windows, Open->File->Save As.
Code:
DirectoryIndex index.php
# Note, if you want to have it check for multiple files just
# list them with a space between.
DirectoryIndex index.php home.php install.php error.php
|
|
|
|