Protecting index files from hacking
One of our server admin advised me to have default index pages in different name other than index.php,index.html etc..
Because hackers will try and update contents of index.php,index.html files as they are the default ones.
Add this code in .htaccess
This will set main.php as default page for your domain.