![]() |
index.html and index.php - who loads first?
lets say i have index.html and index.php in a directory.. on my computer, index.html loads first - will it be like that on all computers?
|
depends on what order theyre listed in your httpd.conf file
|
Quote:
i guess what i meant to ask was.. if it loads first on my computer, will it load first on all computers? |
By default I think html but don't quote me on that.
|
Quote:
|
Quote:
|
Quote:
foo.com/index.php instead of foo.com/ |
Quote:
|
Quote:
|
If it loads first for you then it will for all other accessing computers. The Index page is sent based upon Apache or your webserver settings, not user-by-user.
|
Apache will resolve to the first file type listed in the DirectoryIndex directive in the httpd.conf file. If there is no file with that extention in the directory then it will go to the next.
DirectoryIndex index.html index.htm index.php index.shtml If you had all four in your root directory, everyone would see index.html. If you had the last three, everyone would see index.htm. If you had the last two, everyone would see index.php. Unless someone linked directly to one of the pages... |
Quote:
|
wigg3r.php loads first on all computers
|
index.html
|
Quote:
DirectoryIndex index.shtml index.php index.html index.htm What loads first? |
Quote:
|
Quote:
|
Furthermore if you have virtual domains on your server it's possible that not all virtual domains on the box will load the same... depends how you are assigning your virtual domains in httpd.conf
|
All times are GMT -7. The time now is 12:20 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123