StackPath Support

WordPress with WP CDN Rewrite: StackPath CDN Setup Guide

WP CDN Rewrite is a WordPress plugin that rewrites the root URL of static assets including images, CSS files, and JavaScript files. ​It replaces the root URL (yourdomain.com) with the CDN URL (site.company.stackpathdns.com). Doing this ensure static assets are delivered by StackPath CDN rather than the origin server.

This tutorial assumes a site is created.

Installation

  1. Log in to the WordPress admin panel:

    Screenshot of WordPress admin panel

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

    Screenshot of WordPress plugin Add New option

  3. In the plugin search box, type  Then press Enter on your keyboard:

    Screenshot of plugin search bar in WordPress

    The WP CDN Rewrite plugin will appear:

    Screenshot of installation box for WP CDN Rewrite in WordPress plugins search

  4. Click Install Now.

  5. After WP CDN Rewrite is installed, click the Activate Plugin link.

Configuration

  1. Hover over Settings in the left-hand menu and click CDN Rewrite:

    Screenshot of CDN Rewrite link in WordPress settings dropdown

  2. Enter your CDN URL or custom CDN URL in the text field next to CDN Root URL (required).

  3. Click Save Changes.

  4. Verify StackPath CDN is properly integrated.

Return to top
Powered by Zendesk