Important Note

This tutorial assumes you have already created a Pull Zone.

Implementation of CDN for b2evolution

You only need to edit a single file in order to set the path variables to point to the CDN location:

  1. Open blogs/conf/_advanced.php
  2. Add the following code on top of the page:
    $cdnurl = ‘’;
  3. So that first line of code looks like this:
    <?php  $cdnurl = ‘’;
  4. Find the following line:
    $rsc_url = $baseurl.$rsc_subdir;
  5. Replace it with:
    $rsc_url = $cdnurl.$rsc_subdir;
  6. Find the following line:
    $skins_url = $baseurl.$skins_subdir;
  7. Replace it with:
    $skins_url = $cdnurl.$skins_subdir;
  8. Find the following line:
    $media_url = $baseurl.$media_subdir;
  9. Replace it with:
    $media_url = $cdnurl.$media_subdir;


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.


“” needs to be replaced with the proper CDN temp URL or, if you have a custom URL, the proper custom URL.