What is the index file priority order on ecp2.karthost.com server Print

  • 3

The index file is what the server automatically pulls up when their isn't a request for a specific file.
For instance if you just type in your domain name and no file name after the domain name the server will automatically look for a default index file.
Also if you just show a directory (folder) after the domain name, like this as an example: mywebsite.com/aboutus/
If there isn't a file for the server to pull up in the "aboutus" directory the server will just pull up a default index file.

Now if you have to index files in a directory and the server finds both of them, which one does the server us?
Good Question, it will look at the Priority Order of the index (default) files and use the one in highest priority.

And here are the index files the server will use with related extensions.
And the Priority Order of the files. The first one listed is top priority, the bottom one lowest priority: index.html.var
index.htm
index.html
index.shtml
index.xhtml
index.wml
index.perl
index.pl
index.plx
index.ppl
index.cgi
index.jsp
index.js
index.jp
index.php4
index.php3
index.php
index.phtml
default.htm
default.html
home.htm
index.php5
Default.html
Default.htm
home.html
Index.htm
Index.html

Was this answer helpful?

« Back