index pages

Status
Not open for further replies.

marxel

New Member
Messages
19
Reaction score
0
Points
1
Let's say I have both an index.html file and an index.php file in the same directory. If I browse to that directory, will it show the html file or the php one?

Oh and does x10 have an option to give "priority" to which file it will show, like with said situation, I set an option to show the html one instead of the php one.
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
To change the order of precedence, enter a DirectoryIndex command with multiple file names on the same line. The order in which the file names are listed (from left to right) determines the order of precedence. For example,

DirectoryIndex hieronymous.html index.cgi index.php index.html


from here: http://www.hostingmanual.net/other/htfun.shtml

I think by default it's php then html, but I could be wrong.
 
Last edited:

marxel

New Member
Messages
19
Reaction score
0
Points
1
Thanks, I'll try that once the server is back up. Right now it's experiencing its usual quick overload-caused downtime :D
 
Status
Not open for further replies.
Top