Important note

This tutorial assumes you have already created a Pull Zone.

Magento has the ability to utilize CDN Functionality without the need for a 3rd party plugin.

Setting up a CDN using Magento’s native support

  • Log into the admin panel of your website.
  • Go to System → Configuration.
  • Under General select Web option.
  • Go to Unsecure settings tab.
  • Follow these setup instructions:
  1. Set the Base URL of your website so that your website domain is in the following format: http://www.mywebsite.com.
  2. Base link URL leave as default: {{unsecure_base_url}}.
  3. Base Skin URL: http://foo.bar.netdna-cdn.com/skin/
  4. Base Media URL: http://foo.bar.netdna-cdn.com/media/
  5. Base Java Script URL: http://foo.bar.netdna-cdn.com/js/
Do not forget to replace “foo.bar.netdna-cdn.com” with your actual CDN URL!
  • Keep in mind the warning inside this section: “When using CDN, in some cases JavaScript may not run properly if the CDN is not in your subdomain”.
  • Now that you are officially using a CDN on your website, you can check if your URLs are being rewritten by loading your website and viewing the source code of your page.

Important note

In case you accidentally used the wrong CDN URL for your Magento website, please visit this page to learn how to fix this mistake.


Now you can check if your website is using the CDN by loading your website and viewing the source code of loaded page. You should see that your origin URLs are rewritten to the CDN URLs.

Video Tutorial

[videotutorial vid="magento2" vfile="cpn_magento_cdn_n-p.mp4"]
OnePica does not support newer versions of Magento and has been proven to break often. We highly recommend that you use Magento’s native support to incorporate CDN functionality into your site.