I have a website on a server. The homepage is example.com/index.php .
OK, I uploaded an index.html named file to the server (the root dir) and when I typed in my sit
@kuroir is right, that depends on the web server configuration, in Apache it's the DirectoryIndex:
DirectoryIndex index.html index.php index.cgi
That will give priority to .html files over .php files, and priority to .php files over .cgi files.
.html
.php
.cgi