How to Configure WP Rocket Caching Plugin with MaxCDN

WP Rocket with MaxCDN

This tutorial will show you step by step how to configure the WordPress WP Rocket Caching Plugin with MaxCDN. I do however recommend KeyCDN now over MaxCDN. More POPs and half the price!

Step 1

I am going to assume that you have WP Rocket installed and activated already in WordPress and that you have signed up with MaxCDN. First in MaxCDN we need to click into zones at the top.

maxcdn zones

Step 2

Then click on “Create Pull Zone.”

maxcdn create pull zone

Step 3

Then we need to enter your pull zone details. For the zone name you can put whatever you want to call it. Then make sure to put your full domain name and then a short label.

pull zone details

Step 4

Then under the pull zone overview screen we will click on “Manage.”

manage pull zone

Step 5

Then under the settings tab/screen we are going to add a custom domain. This will remap all of your images, javascript, etc. to this CNAME. For example, an image that used to show this path http://mydomain.com/wp-content/uploads/… will now appear as http://cdn.mydomain.com/wp-content/uploads/…

maxcdn custom domain settings

Step 6

Now we need to go over to your domain registar and add a CNAME record for the above custom domain setting to work properly. I will be using Namecheap in my example. However it is very similiar with every domain registrar. Click into your domain and then click on “All Host Records.”

namecheap all host records

Step 7

We will then put CDN in the host name column, then paste your CNAME from MaxCDN into the IP/Address column. So in mine I put mysite.mysite.netdna-cdn.com. Change the record type to CNAME and the TTL to 1800. Press save and your all done setting up the CNAME. This will now point cdn.mydomain.com to the MaxCDN servers.

namecheap maxcdn cname

Step 8

Now you will probably need to wait a few minutes for your CNAME record to propagate. I highly suggest using https://www.whatsmydns.net/#CNAME/ to check on your propagation. Simply enter the URL you chose for your CNAME host record, select CNAME in the dropdown and hit “Search.” You will notice once it is working it will return results with it pointing to the MaxCDN CNAME and a green checkmark.

check cname propagation

Step 9

Once your CNAME has fully propagated we will now go into the CDN tab on the WP Rocket plugin in WordPress. We will select the checkbox to “Enable Content Delivery Network.” We will then input the domain you chose for your CDN, and select “All Files.” All files will give you the fastest results as it will compress and cache everything. Hit “Save Changes” and your all done!

wp rocket cdn configuration

Step 10 (very important)

Back in MaxCDN I highly recommend you setup the SEO section otherwise you might find yourself in trouble. In your pull zone, click into the SEO section at the top. Enable the “Canonical Header” (this will allow your images to index) and then also enable the Robots.txt. I am using a custom one as seen below in my example.

User-agent: *
Allow: /wp-content/
Disallow: /wp-admin/

maxcdn SEO settings

If you haven’t signed up with MaxCDN yet click here to get a 25% off lifetime coupon!

As always feel free to comment below!

Get More Stuff Like This

Marketing, WordPress, Blogging Tips, SEO and Reviews, once a week.

Thank you for subscribing.

Something went wrong.

12 thoughts on “How to Configure WP Rocket Caching Plugin with MaxCDN”

  1. Pingback: How to Configure WP Rocket Plugin with MaxCDN |...
  2. Pingback: WP Rocket: The Best WordPress Caching Plugin + Giveaway
    • Hey Kingsley, thanks for your comment!
      It depends on your host and setup. Most of the time the CNAME is setup at your domain registrar because they control the DNS records. However, if you have forwarded all of the DNS records to your webhost, then you could change it from there since they would then be in control of the DNS records.

      Hopefully that makes sense :) Have a happy Halloween!

  3. I purchased last month and mostly due to your article. Install and setup work in a breeze and their support team are quite extraordinary. Also, the setup with MaxCDN runs quite smooth. However, didn’t found Amazon S3 neither CloudFront to configure, but truth be told after MaxCDN began to cache the files, I couldn’t ask for more.

    • Great! Ya their support is amazing. I prefer MaxCDN myself and once everything caches you really can’t beat the speed. Good Host + WP Rocket + MaxCDN = winning combination!

  4. You shouldn’t really be blocking access the Wp-content section with robots… this will lead to Google showing “Partial” as they will only be able to see the site minus CSS, JS etc – which is not good.

    • Hey Colin! If you look at the article above you can see I have an allow: statement in the robots file for the wp-content section. Meaning I am not blocking it. Am I missing something?

      • Hi Brian, apologies, I read “disallow”, this is what happens when I comment on things late at night when my brain isn’t fully functioning! :)
        Though worth mentioning, technically “allow” isn’t a standard directive – you can basically just leave it blank and it will default to allow, unless you are blocking it with another rule. That said, Google and Bing do both look at and take into account “Allow” – so it may as well be standard.

        • Haha np Colin, I totally understand how that goes :)
          And yes I agree, I sometimes leave off allow myself; but it can’t hurt, so I usually add it.

Leave a Comment

shares