How to Set Up the CDN in WP Engine

In this tutorial, we’re going to show you how to set up the CDN for your WordPress site in WP Engine.

What is a CDN?

CDN stands for Content Delivery Network. A content delivery network is a large system of servers located in data centers across the world. The purpose of a CDN is to load content in a browser using the server physically closest to the end user’s location, making browser load time much faster.

  1. Start by logging into my.wpengine.com
  2. Next, on the left sidebar, click on the installation name that you want the CDN set up for.
  3. Under the installation name, click ”CDN”
  4. Click the checkboxes under CDN enabled for both the www and non-www version of your site name.
    • Don’t worry about the [your domain].wpengine.com version of your site. Typically, you’d only be using that domain for testing, and wouldn’t want or need a CDN enabled.
  5. Click the “Save” button

You can check to see if your site is being served on a CDN by going to a media file on your site, like an image for example.

  1. Right click on the image, and choose to either “Open Image in New Tab,” or “View Image Info.” The option depends on what browser you’re working in.
  2. Before the CDN was setup, your image path would look something like http://[your domain name].com/wp-content/uploads/2013/08/images.jpg.
  3. With the CDN turned on, now your image path would look like http://72189723iuyhaefha928392832f.wpengine.netdna-cdn.com/wp-content/uploads/2013/08/images.jpg.

The CDN is now setup for your WordPress site. Check out our other tutorial if you wish to create a custom CDN URL subdomain such as “cdn.[your domain name].com.”

Our WordPress hosting comparison matrix lets you search features & compare pricing side-by-side amongst popular WordPress hosts, including WP Engine. Give it a try.

What Are Your Thoughts?

All fields are required. Your email will not be published.

You can use standard <code> and <pre> tags to post code examples, or a service like codepen.io.