Jump to content


Tutorial info

  • Added on: Jul 30 2011 09:31 PM
  • Views: 981


* * * * *
0 Ratings

How to Delete and Replace all index.html files using SSH

SSH command prompt required to perform this tutorial. Useful if your website has had malicious code added to index.html files.

Posted by EchelonOne on Jul 30 2011 09:31 PM
How to Delete and Replace all index.html files using SSH

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.
Powered by Tutorials 1.3.1 © 2012, by Michael McCune