Recently, I found this old question on WordPress StackExchange:
I am starting a new WordPress blog, and no longer updating an old one. […] How can I lock the installation of WordPress down so I don’t need to maintain it? I have seen someone suggest making a static version, which sounds like a lot of work.
The top-rated answer is very good, but overly complicated. It involves custom code and .htaccess modification. I think I can offer a simpler solution. Here’s how you can turn your blog into a static site:
- Make a backup. Just in case.
- Disable comments and any other dynamic features your blog may have, e.g. contact forms.
- Install WP-SuperCache and set the cache expiry time to 604800 seconds (= one week).
- Fire up Xenu’s Link Sleuth and tell it to crawl your entire site. This will make WP-SuperCache generate static HTML files for all of your pages.
- Delete all .php files and drop the WordPress database.
With all PHP scripts deleted, “expired” cache entries will never be removed, so the server will keep serving the same cached pages forever. Congratulations, your site now static 🙂
Alas, the aforementioned SE thread is rather old, so if I posted my answer there, no-one would probably ever see it.Related posts :