• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Fixmysite.com

Fix Your WordPress Website Right Away for $39

  • Services
    • Small Tasks
    • Repair
    • Migration
    • Speed Optimization
    • Malware Removal
    • Redesign
  • My Account
    • My support tickets
    • My billing area
  • Support
  • WordPress Maintenance Plans

How to Configure WP-Rocket with KeyCDN for Lightning Fast Performance

Last updated on: July 27, 2018
Written by William Leave a Comment

Tweet Share Network
WP-Rocket and KeyCDN

In this tutorial, I will show you how you can configure WP-Rocket to work with KeyCDN. We will start off by creating a free account with KeyCDN and setting up their service. Then we will look at the configuration settings we use for WP-Rocket.

Do note that this article affiliate link free. We use both WP-Rocket and KeyCDN on our website, and we also recommend the services when our speed optimization service is commissioned.

You can purchase WP-Rocket for $39 USD with a discounted annual renewal fee. While KeyCDN is a pay as you go service (unlike its competitors that charge a recurring monthly fee). For $50 you can buy approximately 1.25TB of traffic.

Why us a CDN?

If you run a website or blog, you will already know that speed matters. Internet users are notoriously impatient. According to a Kissmetrics study, a well-known analytics company, 47% of online shoppers expect a website to load in under 2 seconds and 40% of online shoppers abandon the website’s that take more than 3 seconds to load. We also know that page load time is an important factor in Google’s algorithm that can affect your search engine rankings.

CDN - Content Delivery Network
Image by KeyCDN

That being said, you may be asking yourself what is a CDN? Without going into much detail, a CDN (Content Delivery Network) is a network of servers that are strategically located across the globe with the purpose of accelerating the delivery of your static web content such as your images, CSS and JS files.

A server on the network is known as a point of presence (PoP). They are the servers used to cache content retrieved from your origin server. An origin server is where your files and database are stored, in our case it’s SiteGround. For you, it could be BlueHost, Godaddy or your local hosting company.

How does that help performance?

In simple words, your site will load faster because your content will be delivered faster to your website’s visitors since there is less distance to travel.

Let’s assume that “Henry” is located in Melbourne and wants to read your photography blog that is hosted in Texas. Think about the journey that must be undertaken for “Henry” to view those images! Wouldn’t it be helpful if there was a local point of presence (PoP) ready to serve a cached copy of your website’s content? Naturally, it would be awesome, and that’s one of the reasons why many websites use a CDN.

The proof is in the pudding, have a look at our website’s Pingdom performance score from Melbourne without KeyCDN:

Fixmysite.com Pingdom

And the same test, after setting up the CDN:

Fixmysite.com - Pingdom

Setting up KeyCDN

Naturally, you will want to create a free KeyCDN account. Once you have signed up and confirmed your email, navigate to the Zones tab and click the add zone button.

KeyCDN - Zone

For the zone name, enter a name of your choice. For the zone status, select active. For the Zone Type, select Pull.

In the Pull Zone Settings, enter your website’s URL.

If you have an SSL certificate installed on your website, you will want to select the “Show Advanced Features” checkbox and scroll down to the SSL section where you will have to the option install a free shared SSL for your zone.

KeyCDN - SSL

Review the settings and when you are pleased with your options, click the Save button. KeyCDN will go ahead and pull your site’s content to their servers. The Process will take a few minutes. When ready the zone will return a status of active.

KeyCDN - Status

Now give your new zone a test run! If your logo’s address is:

https://example.com/wp-content/themes/cool-theme/images/logo.png

Then the same file should be hosted under:

https://yourzonename-id.kxcdn.com/wp-content/themes/cool-theme/images/logo.png

Setting up WP-Rocket

Once we have created our CDN Zone, we can login back into our WordPress website and navigate to the WP-Rocket settings.

There is a good chance that you are familiar with WP-Rocket. WP-Rocket is one of the most user-friendly caching plugins for WordPress.

The plugin supports a number of features, such as GZIP compression, CSS, HTML & JS minification, mobile caching, DNS prefetching, CDN configuration and many more. Analysing all the settings available with WP-Rocket is well worth a dedicated blog post. But to make things interesting, I thought I would share my configuration settings with you:

WP Rocket - Cache
WP Rocket – Cache
WP Rocket - File Optimization
WP Rocket – File Optimization

However, for this tutorial, the settings that interest us are in the CDN tab.

Warning

Before making any changes to your site’s settings, make sure you have a fully working backup of your site and database. If something goes wrong, you will want to have a restore point!

WP Rocket - KeyCDN Settings
WP Rocket – KeyCDN Settings

Seriously, WP-Rocket really makes things easy. All we need to do is select “Enable Content Delivery Network”. Then where it asks us to “Replace the site’s hostname with”, we enter the Zone URL provided to us by KeyCDN and click Save Changes.

Then WP-Rocket will replace all your file URLs (images, CSS and JS) with the newly updated hostname URL.

However, if you have any hardcoded links in your template files, stylesheets or in a custom field you will need to update them manually.

And there you have it! A WordPress website optimized with KeyCDN and WP-Rocket ready to welcome visitors from around the world.

We would love to know your experience! Do you have an international audience? Have you tested your load time from different locations? Share with us your thoughts and questions in the comment section below.

Tweet Share Network

About William

Hi, I'm William! I'm a website mechanic that specializes in fixing WordPress websites. Whenever I can, I write a D.I.Y. guide to share my research and processes. I hope the articles help, and thanks for reading and comment if you have questions!

Having Trouble ?

WordPress Services

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Search

WordPress Checklists

WordPress PDF Checklist

Curious to find out if everything is working correctly on your website?

Sign up to our newsletter, download our free Performance, Security, and SEO checklists and audit your website!

Recent Guides

Launching our WordPress Care Plan

WordFence Logo

WordFence Tutorial: How to Enhance your Website’s Security

Push Notifications

Top 10 WordPress Push Notification Plugins to Engage with your Audience!

WordPress Migration

11 Best WordPress Migration Plugins

Database Error

Fix the “Error Establishing a Database Connection” in WordPress

Stay Tuned !

Having Trouble ?

WordPress Support

Footer

How Can We Help?

For a free assessment of your website, simply press the big orange button below!

Support

Latest DIY Guides

Launching our WordPress Care Plan

WordFence Tutorial: How to Enhance your Website’s Security

Top 10 WordPress Push Notification Plugins to Engage with your Audience!

11 Best WordPress Migration Plugins

Featured Services

  • Small Tasks
  • Repair
  • Migration
  • Speed Optimization
  • Malware Removal
  • Redesign
  • WordPress Maintenance Plans

Support Hours EST

Mo. to Fri. 8:00 am - 12:00 am
Sat. & Sun. closed

Leave a Message

WhatsApp

Pay with:

PayPal

Click for the BBB Business Review of this Website Maintenance in St Catherines ON

Preferred Support Partner

PayPal
  • Blog
  • Affiliates
  • Join the Team
  • Contact
  • Terms
  • Privacy
  • Cookies

© 2023 Fixmysite.com

Reg. 310643622

Small support agent

Can we send you 3 performance checklists (SEO, Speed, Security) to your inbox? ✅🚀🔒

Yes Please!
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok