I put an index.html file and an index.php file in the root directory of my site together, when I navigate to my site, http://www.site.com, it serves the php file instead of the html file, my question is why? Why does it serve the php over html? Apache server.
Share
Check the DirectoryIndex directive of Apache.
http://httpd.apache.org/docs/2.0/mod/mod_dir.html
For instance
Will try to serve first the html, if it doesn’t exist it will serve the php.