This tutorial is for turning a WordPress website that you are no longer updating into a flat file website (on Reclaim Hosting) rather than driven by a database. Why would you do this?
- Security – Managing a database (like WordPress) requires regular software updates and patches to maintain function and security. A flat file site has fewer entry points for hackers and so is less at risk for security issues
- Function – Because WordPress, plugins, and themes are regularly updated, keeping a database driven site requires maintenance, or things will break. A flat file site does not rely on databases to function and does not need to be updated (not in the same way).
- Space – Databases take up more space than flat files, so reducing the number of databases living on your server space provides you with more room to create new things.
Converting to a flat file site has these benefits, but it should only be done when you are finished with a project and don’t have plans to regularly add to it. This conversion will remove your site from the “My Apps” list in Reclaim, and you will only be able to edit things by going into the Files directly. This step is perfect for:
- Class websites that you are not running any longer
- Student projects that want to remain public but are no longer being updated
- Event websites
- Blogs that you want to keep available but are no longer contributing to
So, how to do it?
- First, I recommend going to http://web.archive.org/ and having all the pages of your site archived on the Internet Archive. This provides another backup to your site and makes sure the site can be viewed in the long term via the Archive. (Note that interactive and multimedia elements may not archive well.) Just add the url for your site in the “Save Page Now” field. You will need to do this for *every* page. It does not automatically grab all the sub pages.Note: This step is optional, but it’s recommended as the best long term preservation strategy you can employ.
- Log into your Domain of One’s Own/Reclaim Hosting account and go to “My Apps” from the Dashboard/CPanel.
- Make a backup copy of whatever site you are working with.
- Then go to “My Backups” at the top, and download the most recent backup copy you have of the website. Save this downloaded file somewhere for safe keeping for the long term.
- Login to the Dashboard of your WordPress site
- Go to plugins, and install and activate the plugin “Simply Static”
- On the left of the dashboard, you will see “Simply Static” as an option. Click on “Generate” and then click the button “Generate Static Files”. This may take a little while – be patient.
- Once it has generated the static file, you can download a zip file. Do so and save it somewhere you know where to find it.
- Go back to your Domain of One’s Own/Reclaim Hosting Dashboard.
- Go to “My Apps” and delete any backups you have of the WordPress website (you’ll still have your downloaded backup).
- Uninstall your WordPress site.
- In the Dashboard/CPanel, go to “File Manager” and navigate to the folder that used to hold your WordPress site.
- Click “Upload” at the top of the page, and load in the zip file you just downloadedThen click “Go back to”
- Select the zip folder you just uploaded and click “Extract” at the top of the page and confirm where you want the folder to extract to
- You can see the files are now opened. If you go to the url of your original site, you should see it working and looking as you were used to.
Pingback: Simpler Website Tech: Leaving the PHP Island – Generation R