Support

Find answers, guides, and tutorials to supercharge your content delivery.

Kentico CDN Integration

Updated on December 4, 2021

This article shows how to complete a Kentico CDN integration with KeyCDN:

  1. Create a Pull Zone or Push Zone.
  2. Edit web.config within <system.webServer> and add the following:
    <rewrite>
        <outboundRules>
            <rule name="Rewrite Assets to CDN by path" preCondition="IsHTML">
                <match filterByTags="Img" pattern="/media/(.*)" />
                <action type="Rewrite" value="https://cdn.yourwebsite.com/media/{R:1}"/>
            </rule>
        </outboundRules>
    </rewrite>
    
    Adjust the CDN domain accordingly.
  3. Save all settings.
  4. Make sure the assets have been rewritten in the HTML of your website. We recommend to review the HTML and verify that the assets are loaded from the CDN.

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more