FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Index page load order

 


iridios
Greetings again,

Ok here is another question I cannot seem to find a topic for, and please forgive me if it has been discussed. I just can't seem to wrangle phpBBs search engine well.

If I create an index.html and an index.php both in the same folder, which one will be loaded when someone loads the folder without putting in index.???

Thank you again.
yjwong
I think HTML Files have higher piority by default than PHP Files.
Pikokola
Yap HTML is come first i think, but it will better if you make different nam (maybe indexx or index2),

oh yeah, make it sure that it's index, not Index, it will not be read (according to my experience lately. T___T
n0obie4life
html has a higher priority.

Unless you used .htaccess to overwrite Smile
Daniel15
n0obie4life wrote:
html has a higher priority.

Unless you used .htaccess to overwrite Smile


Just to clarify on the .htaccess thing, you can put this code into a file called .htaccess in your web root:

Code:

DirectoryIndex index.html index.htm index.php


That means that the index.html file would be top priority, index.htm would be second and index.php would be third. Of course, you can use different file names:

Code:

DirectoryIndex this-is-not-an-index.php

That would use the this-is-not-an-index.php file as the index file Very Happy
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.