INTEGRITY Cloudflare Docs

Deploy a static WordPress site

Overview

In this guide, you will use a WordPress plugin, Simply Static, to convert your existing WordPress site to a static website deployed with Cloudflare Pages.

Prerequisites

This guide assumes that you are:

Setup

To start, install the Simply Static plugin to export your WordPress site. In your WordPress dashboard, go to Plugins > Add New.

Search for Simply Static and confirm that the resulting plugin that you will be installing matches the plugin below.

Simply Static plugin

Select Install on the plugin. After it has finished installing, select Activate.

Export your WordPress site

After you have installed the plugin, go to your WordPress dashboard > Simply Static > GENERATE STATIC FILES.

In the Activity Log, find the ZIP archive created message and select Click here to download to download your ZIP file.

Deploy your WordPress site with Pages

With your ZIP file downloaded, deploy your site to Pages:

  1. In the Cloudflare dashboard, go to the Workers & Pages page.

    Go to Workers & Pages ↗
  2. Select Create application > Pages > Use direct upload.

  3. Name your project, then select Create project.

  4. Drag and drop your ZIP file (or unzipped folder of assets) or select it from your computer.

  5. After your files have been uploaded, select Deploy site.

Your WordPress site will now be live on Pages.

Every time you make a change to your WordPress site, you will need to download a new ZIP file from the WordPress dashboard and redeploy to Cloudflare Pages. Automatic updates are not available with the free version of Simply Static.

Limitations

There are some features available in WordPress sites that will not be supported in a static site environment:

Conclusion

By following this guide, you have successfully deployed a static version of your WordPress site to Cloudflare Pages.

With a static version of your site being served, you can:

Connect with the Cloudflare Developer community on Discord to ask questions and discuss the platform with other developers.