You are viewing the legacy StackPath SecureCDN Help Center. Please use if you signed up after July 1, 2018 or log in through

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.


  1. Log in to the WordPress admin panel:

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

  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.


  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: You can also use a custom CDN URL if you created one using a CNAME record that looks like this:

  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: NOT

Return to top