FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
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
Related topics
Speeding up the phpBB 2 forum index page
Problems With Index Page
Not Changing Index Page Often Increased (Page)Ranking 4 SE ?
where is my index page in cpanel?!
one more line on forum index page
How do I enable directory viewing when theres no index page?
Put the last 10 topics from my phpBB forum on the index page
Only index page crawled
how to make blog show on my index page
cannot update the index page from cp.frih.org
Add number of posts on the forums index page
Problem getting started---total newb
How To : Secure Your PHP Website
PHP index page not displaying problem
how to change the default index page
Problem index page
Your index page
Index page for images, putting them all on one page 50fri$!!
Session variables versus page variables
Hide forums/categories
Page load time
PHP NUKE
Why doesn't the page works
A Few Tutorals I Have Wrote
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.