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
-
Log in to the WordPress admin panel:
-
On the left-hand menu, hover over Plugins and select Add New:
-
At the top of the page, click Upload Plugin.
-
Click Choose File. Then grab the WP Rocket plugin file from the folder you saved it to. After selecting it click Install Now.
-
Click Activate Plugin.
Configuration
-
In the top menu click the WP Rocket link.
-
Click the CDN tab.
- 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.
-
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.