> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate CDN resource with B2evolution

Before you take any steps please back up your files and database. The plugin works only with default CMS pattern. If you manually changed CMS patterns, the plugin might not help you.

Use your ?NAME (cdn.site.com) that you specified in the [Gcore Customer Portal](https://portal.gcore.com/cdn/resources/list) for the following steps. Ensure that your [CNAME record has been configured](/cdn/cdn-resource-options/general/create-and-set-a-custom-domain-for-the-content-delivery-via-cdn) in a proper way before using it for integration.

One single file needs to be edited in order to set the path variables to point to the CDN location: `blogs/conf/_advanced.php`

Add a new variable in the beginning.

Replace the following variables in the code

Replace *cdnurl* with your CNAME. For example: `http://cdn.site.com/`

| **Before**                             | **After replacement**                  |
| -------------------------------------- | -------------------------------------- |
| $rsc_url = $baseurl.\$rsc\_subdir;     | $rsc_url = $cdnurl .\$rsc\_subdir;     |
| $skins_url = $baseurl.\$skins\_subdir; | $skins_url = $cdnurl .\$skins\_subdir; |
| $media_url = $baseurl.\$media\_subdir; | $media_url = $cdnurl .\$media\_subdir; |

Integration has been completed! We highly recommend you to check the HTML code of your web page to ensure that URLs have been rewritten properly from your original ones to CNAME from the Gcore Customer Portal.

To do that press **F12** or open Developers Tools in your browser, choose the Network tab and refresh the page. All static files should have your CNAME in URLs.
