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?
index.html and index.php - who loads first?
Collapse
X
-
-
Like others said, yes it will load the same on all computers accessing that server unless they are linking to a specific page:Originally posted by brizzad
i guess what i meant to ask was.. if it loads first on my computer, will it load first on all computers?
foo.com/index.php instead of
foo.com/Comment
-
Comment
-
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.
TGPFactory Full TGP Design & Installation Services
ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
See who I am at AdultWhosWho.com!Comment
-
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...Last edited by broke; 11-29-2004, 09:34 PM.Comment
-
what he saidOriginally posted by broke
Apache will resolve to the first file type listed in the DirectoryIndex directive. 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...
Comment
-
Really --Originally posted by Red Ezra
index.html
DirectoryIndex index.shtml index.php index.html index.htm
What loads first?Comment
-
-
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.confLast edited by fulcrumstudio; 11-30-2004, 01:00 AM.SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.Comment

Comment