StackPath Support

WordPress with WP Rocket: StackPath CDN Setup Guide

WP Rocket is a caching and performance optimization plugin for WordPress that improves page load time. Installation and configuration can be completed in less than 3 minutes.

This tutorial assumes a site is created and the WP Rocket plugin is purchased.

Installation

  1. Log in to the WordPress admin panel:

    Screenshot of WordPress admin panel

  2. On the left-hand menu, hover over Plugins and select Add New:

    Screenshot of WordPress plugin Add New option

  3. At the top of the page, click Upload Plugin.

  4. Click Choose File. Then grab the WP Rocket plugin file from the folder you saved it to. After selecting it click Install Now.

  5. Click Activate Plugin.

Configuration

  1. In the top menu click the WP Rocket link.

  2. Click the CDN tab.

  3. Enter your CDN domain in the text field called Replace site's host name with.

    Your CDN URL was automatically created after you created a site. It looks similar to this: http://site.company.stackpathdns.com. You can also use a custom CDN URL if you created one using a CNAME record that looks like this: http://cdn.yourdomain.com.

  4. Save the changes.

View the source code of any page to confirm that the CDN domain is being used for static assets instead of your origin domain. Your SDN URL should precede directories designated for static content is located.

Example: site.company.stackpathdns.com/images/image-1.png NOT company.com/images/image-1.png.

Return to top
Powered by Zendesk