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

    1. Log into the admin panel of your website.
    2. Go to System → Configuration.
    3. Under General select Web option.
    4. Go to Unsecure settings tab.
    5. Follow these setup instructions:
      1. Set the Base URL of your website so that your website domain is in the following format:
      2. Base link URL leave as default: {{unsecure_base_url}}.
      3. Base Skin URL:
      4. Base Media URL:
      5. Base Java Script URL:
Do not forget to replace “” with your actual CDN URL!
    1. 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”.
    2. Now that you are officially using a CDN on your website.


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.

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.
  • Mike

    Strange, this seems to work for the folder:

    but not for:

    Getting 403’s galore

    • Ivan Dabic

      Hey Mike!

      It usually means your theme is pushing for gzip or it contains custom portions preventing Magento’s native url rewrite from applying CDN urls to your skin files. However, I’d like for us to take a closer look into your magento setup so we can provide solid answer on this one.
      Please, keep us posted on

    • May you or someone on your team respond to this?

  • Andy

    Does MaxCDN supports SSL connection for cdn in magento? My website runs using https and I want to I want to know what are the steps to take in order to successfully use maxcdn with my magento.

  • jasonyohon

    My pages are correctly outputting the source with the CDN urls, but when the image is actually served I get a 301 redirect to the non-CDN file and thus an uncached hit.

    • netdna

      Hey Ivan.

      May you or someone on your team respond to this?


    • nikolamaxcdn

      Hello Jason,

      Based on what I can see the 301 redirect is actually there probably as your pull zone origin url is set to not www that redirects to www or vice versa. Also the the same applies if the origin is set to http that redirects to https.

      Also if you want you can always come to our live chat where we would debug the problem on the spot.

      Let us know if you have any further questions.


      • jasonyohon

        Yes, you are correct. Not sure why I entered WWW in the CDN settings as I haven’t used WWW for 5 years or so.

        • nikolamaxcdn

          Hi Jason,

          I’m glad to hear that the problem was just www set for the origin URL.

          Also if you want you can always come to our chat or email where we would check your account and see when the change was made.