The WordPress CDN Enabler is a lightweight plugin to quickly and easily integrate KeyCDN into your WordPress site. The WordPress CDN Enabler plugin comes with the ability to set included directories, exclude particular extensions (e.g. .php), and enable / disable relative paths and HTTPS connections. Using a WordPress CDN plugin is the easiest way to integrate any CDN with your WordPress website and have it delivering cached assets via the edge servers in a matter of minutes.
Read more about our full list of WordPress plugins at KeyCDN WordPress Plugins.
WordPress CDN Plugin Integration
The CDN Enabler plugin also runs perfectly with the WordPress Cache Enabler plugin. To install and configure the WordPress CDN Enabler, watch the walk-through video or follow the outlined steps below.
WordPress CDN Enabler Plugin Settings
A lightweight WordPress CDN plugin to link your assets to a Content Delivery Network (CDN).
- Create a pull zone in the KeyCDN dashboard.
- Install the CDN Enabler plugin (login to your WordPress dashboard: Go to Plugins -> Add new).
- Activate the plugin and click on settings.
- Enter the CDN URL or Zonealias in the CDN Enabler Settings (you can find the CDN URL in the KeyCDN dashboard):Important: The CDN URL needs to start with the protocol
- Save the settings and verify in the HTML code if your assets are loading from the CDN.
In Settings –> General, make sure to use a HTTPS URL if HTTPS is used for the CDN as well. If your blog is located in a certain path (e.g. https://www.yourdomain.com/path/to/blog ) it needs to be updated accordingly as shown in this screen shot:
Some WordPress installations may not be located in the root directory but rather within a sub folder such as the following:
In this case, the CDN Enabler’s Included Directories settings need to be configured to account for this. The difference in path from the Site Address to the WordPress Address must be prepended to the directories which contain the files you want to be integrated with KeyCDN. In the above example, site is the only difference between both URLs, therefore your CDN Enabler settings should resemble the following.
Why Use a WordPress CDN Plugin Solution?
Integrating a WordPress CDN plugin with your site can help reduce site latency and thus speed up your website for users globally. The average website is comprised of 80% static content, therefore supercharging your website with the help of a CDN not only increases it’s delivery speeds but also helps reduce the load on the origin server. KeyCDN also offers additional benefits such as:
- HTTP/2 supported edge servers (for even faster content delivery)
- Let’s Encrypt Integration
- Access to 24+ POPs
- Access to Real-time / Raw logs
Also make sure to check out our complete guide on how to speed up WordPress for more information on how to further improve your WordPress site’s loading time.