According to the WP CDN Rewrite WordPress page, “this plugin allows you to rewrite the root url of assets, css, and js files. This allows you to load these resources from an external URL and improve page load times by taking advantage of parallel browser requests.”

How to Install and Setup WP CDN Rewrite

  1. Log into your WordPress admin panel.
  2. Hover your mouse over “Plugins” and click “Add New.”
  3. In the “Search” box, type “WP CDN Rewrite” and click “Search Plugins.”
  4. Click “Install Now.” A prompt dialog will open and ask if you are sure you want to install the plugin. Click “OK”, then after the plugin is installed, click “Activate Plugin.”
  5. Navigate to Settings –> Rewrite.
  6. Paste the CDN URL into the field called CDN URL WITH http:// included and without a trailing slash.
  7. The CDN Root URL for CSS Files and CDN Root URL for JS Files fields are optional and can be used for parallelizing downloads across hostnames. In order for you to use these you’ll need to create a couple of custom domains within your DNS settings.
  8. NOTE

    To ensure you implemented MaxCDN correctly, you can view the source code of any page to confirm that the CDN domain is being used for static assets instead of your origin domain. You can also use tools like pingdom, gtmetrix, webpagetest that can give you more detailed reports on your CDN implementation status.

    ​if you have any questions about using this plugin effectively, please leave a comment below.