Sign Up / Log In
Need help?
1300 210 210
We're Australian!
#1 for domains & hosting
94% customer satisfaction
Trusted by over 1 million businesses
Expert, 24/7 customer support
90% of issues resolved within a day
Best value
We price match*
Online Support Web Hosting

Which file loads first?

If no particular file is specified, the directory index file will be the first file the server loads from a folder.

For example, if you type in mydomain.com/contact_us.php, the server will return the contact_us.php page. If you type in simply mydomain.com, the server will load the directory's index file.

The server looks for the specific index files in the following order:

  • index.htm
  • index.html
  • index.php

If the server does not find any of these files, it will display a default screen with a list of the files in the folder. This can be a security risk so you always need to ensure that a file will be served instead.

Was this helpful? Yes No 85% of people found this helpful.
we're
online
Need Help? Chat Now