Convert dynamic site to a static HTML site

Sometimes it’s useful to convert dynamic PHP, ASP.NET, Java, or CGI pages to static HTML sites.  This comes in handy when trying to create a copy for disaster recovery.  It is also good way to stop hackers from hacking your PHP site that’s obsolete, unpatched or otherwise insecure.   I find wget is the quickest way to get the job done:

wget -l10 –mirror -p -e robots=off –convert-links –html-extension http://thesiteyouaremirroring.com