Host your static website on BunnyCDN with Simply Static Pro

If you’re thinking of building a WordPress static site, you’ll need a way to host it. One of the easiest and most cost-effective ways is to host your static website on BunnyCDN.

BunnyCDN is a lightning-fast CDN network distributed across 74 edge locations around the world that offers incredible performance.

In this tutorial, we’ll show you step-by-step how to host your WordPress static website on BunnyCDN with Simply Static.

Let’s put everything into context before we begin.

What is static WordPress hosting?

The WordPress CMS is written in PHP code. The web server your WordPress site is hosted on executes the PHP code and queries the database to dynamically generate content whenever a user visits it. The dynamically generated content (HTML files) is then delivered to the user’s web browser.

This is a resource-intensive process. The web server your website is hosted on needs to query the database and dynamically generate content each time someone visits your website. This can also make it seem like your website is “slow” or unoptimized for performance.

Static WordPress hosting explained

The difference between hosting a traditional WordPress site and a static WordPress site is that the latter removes the WordPress back-end completely.

As a website owner, you’ll build your WordPress website and add content to it as you normally would. Once you’re done, you’ll use a static site generator plugin like Simply Static to generate a static version of your website and deploy it using a service like BunnyCDN. The static hosting won’t have to query the database or deal with PHP code.

Keep editing in your usual WordPress installation. Visitors read the exported HTML from the public hostname. You can restrict access to the WordPress origin separately.

Pros and cons of static WordPress hosting

Static WordPress hosting has some notable benefits but it might not be the best option for your site.

The main benefits of static WordPress hosting vs traditional hosting are:

  • Better performance. You can expect your site to load faster. This is because there’s no need for server-processing or running database queries.
  • Enhanced security. A static site doesn’t leave any vulnerabilities for hackers to exploit.
  • Cost-effective. Hosting a static site is, generally speaking, more cost-effective than traditional hosting options.
  • Development. Building and managing a static WordPress site is much easier than a regular, dynamic WordPress site.

Static WordPress hosting has its cons too:

  • Deploying your site after updates. Every time you add content to your site or make changes, you’ll need to deploy it again.
  • You miss out on some native functionality. With a static site, you miss out on some native WordPress functionality because your site isn’t dynamic anymore. This includes search, comments, analytics, and forms.

The good news is that there are ways around it. Check out our articles to see how you can make these features work on a static WordPress site:

How to host your static website on BunnyCDN

To host your static site, you’ll first need to generate a static site if you haven’t done so already. The easiest way to do this is by using the Simply Static plugin for WordPress. Once you’ve generated the static WordPress site, you can use BunnyCDN to host it.

BunnyCDN

BunnyCDN is a lightning-fast CDN solution for static sites that is designed to offer incredible performance. It offers 99.99% availability across the globe. In terms of pricing, you can host your WordPress static site for a fraction of the cost of a traditional web host.

Step #1: Get your API key

In your bunny.net account, open the API settings and locate the account API key. Simply Static uses it to find your zones. The file upload uses a separate credential from the storage zone.

Step #2: Create a storage zone

Create or select a storage zone dedicated to the site. Open its FTP/API access details and note the regional storage hostname, the zone name and its write-enabled storage password.

Step #3: Connect pull zone

Create or select a pull zone whose origin is that storage zone. Record its name and its public CDN hostname. Add your custom hostname to the pull zone if visitors will use your own domain.

Step #4: Configure Simply Static settings

In Settings → Deployment → Bunny CDN, enter the account key in Bunny CDN API Key and the write-enabled storage password in Bunny CDN Access Key. Enter the regional Storage Host and the exact Storage Zone and Pull Zone names. Leave Subdirectory empty to publish at the root. Save and select Test Deployment.

Bunny CDN connection fields for the storage zone and pull zone

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.

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.

After the push, look for index.html in storage and open the same path on the public pull-zone hostname. If storage has the current file but the public page is older, check the origin and cache for that pull zone.

Conclusion

BunnyCDN is several times faster than traditional web hosting solutions. It’s perfect for anyone that’s looking for a lightning-fast, cost-effective host for their WordPress static site.

We showed you how to host your static website on BunnyCDN using the Simply Static plugin. Hopefully, you’re in a good position now to take the next steps.

And, once you’re done setting up your static site, be sure to check out our roundups to find the best tools and plugins to set up comments, forms, search, 404 pages, and analytics on your static WordPress site.

START WITH YOUR OWN WEBSITE

See whether static fits your next project.

Run the free compatibility check first, or try a private copy in Simply Static Studio.