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

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
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Changing SMTP PORTS in WHM

In WHM, goto: Service Manager Scroll down to: Exim on another port In the box next to Run...

How to Setup Gmail with my cPanel hosted email at KARTHOST

Looking to use Gmail instead of your shared webhosting email. At KartHost we highly recommend you...

What is the Email Attachment Limit for cPanel Email Accounts

If you have a KartHost hosting account using the Prime web hosting or any older web hosting...

Redirecting Domains (Domain Forwarding) using Parked Domains in cPanel

If you have a domain name you wish to redirect to your existing web site, you have two ways of...

How do I reset Passwords for Email Accounts Set up in cPanel?

If you have forgotten or lost your password for an email mailbox you set up in the cPanel control...