FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
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
Speeding up the phpBB 2 forum index page
cannot update the index page from cp.frih.org
Add number of posts on the forums index page
Only index page crawled
Latest Post or Replies at forum Index Page
How to make my forum the index page for my site?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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