In this tutorial we learn how to find delete and create new index.html files. Obviously, you could do this manually, but if you have many directories deep with index.html or index.htm files protecting directories then it would be a tedious job.
Access your website using SSH and navigate to the directory where you wish to perform this action and type in the following:
find . -iname "index.html" -delete -exec touch {} \;
Make sure you copy it exactly as it appears including all spaces. If you require .htm instead just change the file name accordingly.








