Table of Contents
Just a quick heads-up!
This article is more than 24 months old and might contain outdated information.
If you want to learn the latest about Simply Static, visit our documentation or watch our video course.
One mission before the release of the new Simply Static Pro was to make my own website entirely static. This helps a lot checking everything is working fine and to further improve the process.
Initial planning
Starting with Why
Besides the fact that I believe in Simply Static and the future of static hosting, I wanted to get all the benefits a static website can provide: better performance as there a no database requests required anymore, better security for my website as there isn’t a direct connection between my system and public static website anymore and to reduce the costs of running a larger WordPress project with a fair amount of premium plugins for things like search and SMTP mailing.
The starting point
My website is a WordPress Multisite and with weekly blog posts, documentation, and pages it obvious that I have a couple of images. The total page size per subsite was around 250 MB. I’ve hosted my website on a droplet on Digital Ocean (Hello SpinupWP) and used Cloudflare for my DNS management. One of the requirements of the static conversion was to not drastically increase the number of tools to get that working and instead reduce the number of plugins and services involved.
Cloudflare Pages
I had a couple of requirements for my new static hosting provider:
- free
- some kind of caching
- a GitHub integration with build-to-deploy
- SSL
While you can do most of these things with additional services (like Cloudfront with AWS) or getting the SSL certificate directly from your domain provider, I like to keep things as simple as possible.
After visiting and evaluating a couple of different services like Netlify, GitHub Pages, Vercel, and cloud providers like AWS or Google Cloud Storage, I decided to give Cloudflare Pages a try.
One thing you will notice is, that all of those static providers have some kind of limitations in their free tier, so take a closer look to evaluate the right tool for the job. Sometimes is just a small note within their terms and conditions, like the exclusion of commercial usage when going with Vercel (ugh).
The limitations for Cloudflare Pages are:
- 500 builds per month
- 20,000 files
- 25 MB maximum file size
These are the important ones, as long as you don’t need 10 domains per project (which seems kind of weird to me). One problem for me (and most WordPress-powered websites) will be the maximum file size of 25 MB. If you don’t optimize your images you will end up hitting the limit even with a small portfolio website.
Image Optimization and CDN
TinyPNG
To fix that, I started optimizing my images. I used the TinyPNG API for that. They do have a WordPress Plugin to bulk optimize all your images in one run.

I paid $23 for the entire optimization of all images for all subsites of my network, seemed fair enough for me.
CDN
I optimized my images, but the overall file size (including all image files) was still around 50 MB per website (as you can imagine by viewing the remaining file size in the screenshot above).
The next step was to find a good CDN solution to deliver my media files from. I decided to use a space from Digital Ocean for that job, as I already used them to host my WordPress website. To sync my media files I used the plugin WP Offload Media from the awesome team at Delicious Brains (which by the way are now the new developers behind Advanced Custom Fields).
The configuration was pretty easy here:

As you can see, there was not that much configuration involved here. I copied all files to the Digital Ocean Space and removed them from my server. I decided to keep the month/year structure from the media library but deactivated the object versioning. That’s something I would recommend to you, as versioning can bring some problems with your paths when converting to a static website.
The hard part here was to add a subdomain to the Digital Ocean space. At first, it seemed required to move the entire domain to Digital Ocean to be able to manage the DNS here and map the subdomain to the space – that’s not true, but really bad documented.
As I use Cloudflare for my DNS and domain management, I will show you the quick way to get that up and running:
- Generate an origin certificate
- Set up the space
- Point the subdomain to the space
Generate origin certificate
Go to your domain in your Cloudflare settings then SSL -> Origin Server

Click on “Create certificate”, you can skip the next settings and click “create” again. You should see the following information:

Set up the space
Leave the tab open or copy that information anywhere you can find it again. Let’s move on to Digital Ocean and create a Space.

Choose the data center closest to you, choose “Use a custom subdomain” and allow the file listing, the last thing is to give it a name. One thing you will notice is the small link asking you to “Add a new subdomain certificate”. By clicking on it, it opens a small modal window to set up your SSL certificate:

Choose “Bring your own certificate” and paste in the information from Cloudflare. Then save it and finish the setup process for your space. You will get an URL to your space like: awesomemedia.fra1.cdn.digitaloceanspaces.com (depends on your chosen data center), copy that.
Point the subdomain to the space
Now we are moving back to Cloudflare, go to DNS and click on “Add record” and choose CNAME. Enter the name of your subdomain and paste in the URL from your space as a value:

That’s it, you can now move back to the WP Offload media settings within your WordPress admin area and start transfer your files.
Problems after migrating my images to a CDN
For most themes and plugins this should be it, but for me, it wasn’t. Turned out that yootheme.com has its own caching system implemented for images and that can not be deactivated completely. That’s a problem as WP Offload media can not replace that images. I found a good bug fix for that here. Maybe that’s not even needed in future updates, but for now, it worked well.
Generate the static website
I moved back to the backend of WordPress. I had Simply Static and Simply Static Pro already installed here. We will now start with the exact configuration I used to make that work within my multisite.
General
Under Simply Static → Settings → General → Replacing URLs, use Absolute URLs and enter the public HTTPS address when you know the final domain. Use relative URLs when the same files need to work on a preview hostname. Save your settings.

Include/Exclude
Under Settings → General → Include, add any pages or files the crawler cannot discover from links. Use Exclude for paths that should be left out of the published copy.

GitHub
Create a dedicated GitHub repository and initialize the branch with a README. Give your deployment token write access to the contents of that repository. In Simply Static → Settings → Deployment, select GitHub. Choose the account type and enter the owner, repository, branch, commit email and token. Leave Folder empty if the exported homepage should live in the repository root. Save and select Test Deployment.

Generate
Open Simply Static → Dashboard. Choose Full Site next to Push and select Push. Follow the Activity Log until the run finishes. Use the Export Log to check the status of individual pages and assets.

Open the configured branch in GitHub and check the new commit. The publish directory should contain index.html, the exported pages and their assets. Use this same branch and directory when you connect your static host.
Cloudflare Pages
In the Cloudflare dashboard, open Workers & Pages, create an application, choose Pages and import an existing Git repository. Authorize Cloudflare for the repository that Simply Static updates and select its production branch.
Use no framework preset and leave the build command empty. Set the output directory to the folder containing the exported index.html, using the repository root if you left Folder empty in Simply Static. Deploy, open the assigned pages.dev address and test a nested page. Later pushes to the configured branch trigger a new deployment. Cloudflare Pages build settings.
Custom Domain
The last step was to add the correct domain under “Custom Domains”. I used my simplystatic.com domain and added it. Due to the fact that I manage my DNS in Cloudflare, it created the required CNAME record automatically for me, for other providers you simply copy the domain and add a CNAME yourself.
Change URLs in WordPress Multisite
The last step was to change the URLs for my multisite. I decided to follow the pattern admin.domain.com for all subsites. After I changed the URLs in the wp_sitemeta, wp_blogs, and both wp_options tables, I used the plugin Better Search and Replace to find all remaining URLs and rewrite them to the new structure. As Simply Static will convert those URLs on every export you don’t have to worry about that again.
Finally I added a password via htaccess to protect my entire WordPress website from external access.
Okay, I had a running static website hosted on Cloudflare Pages now and a secure way to access my old WordPress installation to manage my content, but a couple of things were missing: Search and Forms.
Finishing the Simply Static configuration
Search
For a browser-based index, enable search under Settings → Search and choose Fuse JS. Enter the CSS selector for the form containing your search input. Under Indexing, choose the elements that supply the page title, content and excerpt. Save and run a Full Site push to publish the index with the pages.

Forms
Publish a WordPress page containing your form and submit it once on the source site. In Simply Static → Settings → Forms, enable Use forms?. If you want to read submissions in WordPress, also enable Store form entries. Save and run a full push so Pro can detect supported forms.
Open Simply Static → Forms → Form Connections. Find your form by plugin and form ID, or choose Add connection. For a webhook, enter the receiving URL and configure the success and error messages. Choose Embedded Form and enter the shortcode if visitors need the live WordPress form. The browser must be able to reach the chosen endpoint.

Save the connection, push the page and send a message from the public site. With the built-in WordPress webhook and entry storage enabled, open Forms → Form Entries and look for your test message. If you selected an external webhook, check the receiving service.
Zapier
Create a Zap and choose Webhooks by Zapier → Catch Hook as its trigger. Copy the webhook URL from the trigger setup. Check that your plan supports Webhooks by Zapier. Set up the Zapier trigger.
The browser sends this form to its configured endpoint. Put an HTTPS form handler you control in front of any automation URL that contains a private key. The handler should validate the submission and forward the accepted fields to the automation from the server.
Set your server-side form handler to forward approved submissions to the Catch Hook URL. In Simply Static → Forms → Form Connections, choose the form, select Webhook and enter the public handler URL. Save, publish the form page and send a test entry. Select Test trigger in Zapier and confirm that the expected fields appear.
Add a Help Scout action to create a conversation. Connect your Help Scout account, choose the mailbox and map the submitted email, subject and message from the trigger sample. Send a test, open the conversation in the selected mailbox, then enable the Zap.
Conclusion
That was the entire process of “How I made my website static”. I hope you enjoyed it and that it can help you to start converting your own website to static as it has immensely massive benefits for performance, security, and cost reduction. Stay tuned as I will publish a lot of tutorials in the next couple of months to cover almost every detail about static websites from hosting to external services and more.