I’m using BunnyCDN to host and deliver my own CDN and website since a long time. As I switched to recently WordPress, I was in the need of setting up BunnyCDN with WordPress.
Using a CDN for your WordPress website or blog can bring huge performance improvements and reduce your server load. Instead of using Jetpack or WordPress itself as a CDN, BunnyCDN is a way more professional solution.
Sadly, at this time you can’t host the static WordPress files in a BunnyCDN Storage Zone and they need to be located on your own server or webspace. This isn’t an issue as BunnyCDN will cache everything aswell, but I hope to see a function that will upload the static content to a BunnyCDN Storage Zone in the near future.
Table of Contents
- Setup your BunnyCDN Pull Zone
- Download and install the BunnyCDN plugin for WordPress
- Configure the BunnyCDN plugin to use your Pull Zone
- Optional: Custom CDN Hostname (advanced)
1. Setup your BunnyCDN Pull Zone
If you haven’t created a BunnyCDN account yet, click here to register one.
Now, sign in to your BunnyCDN account.
Go to Pull Zones -> Add Pull Zone or BunnyCDN website.
Then you’re good to go.
2. Download and install the BunnyCDN plugin
First, we’re going to download the BunnyCDN WordPress plugin from the official WordPress plugins website. Click „Get this plugin“ below. On the plugins page, select „Download“ in the right upper corner.
Now, unzip the downloaded file to your desktop or anywhere else. It includes a folder named „bunnycdn“.
Simply upload this „bunnycdn“ folder to your WordPress installation at
Next, go to your plugin settings inside the admin area of your WordPress installation and click on „Activate“ at the BunnyCDN addon.
3. Configure the BunnyCDN plugin
Navigate to the BunnyCDN plugin settings in your WordPress admin dashboard. Click „Switch To Advanced View“ and fill in your settings as follows:
- Fill in your previously created BunnyCDN Pull Zone, which is in my case joshuawpcdn.b-cdn.net
- Set your WordPress site URL, in my case it’s https://joshua.treudler.net
Keep the rest of the settings as they are if you don’t know what you’re doing and you’re good to go.
4. Optional: Custom CDN Hostname (advanced)
In case you’re owning a domain, you can also use a custom hostname for your BunnyCDN pull zone.
First, go to your domain dns management (in my case, it’s CloudFlare) and create a hostname pointing to your BunnyCDN Pull Zone. For example:
CNAME cdn3.treudler.net joshuawpcdn.b-cdn.net
Go to your BunnyCDN Pull Zone settings and select „Hostnames“ in the menu on the left side. Fill in your new hostname, in my case cdn3.treudler.net, click „Add Hostname“. If you have come so far, you might want to enable SSL too.
Now, just go to your WordPress BunnyCDN settings once again and set your new custom hostname. That’s it. BunnyCDN will now deliver your static content. 🙂