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

# Integrate CDN resource with XenForo

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.

Connect to your FTP account.

Go to library folder.

Edit config.php file and add two lines as in the example below:

```
$config ['externalDataUrl'] = 'http://cdn.site.com/data';  
$config ['javaScriptUrl'] = 'http://cdn.site.com/js';
```

Login to your XenForo admin area.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-xenforo/xenadmin.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=57ef12219f087c301fce8c8f1967aa7d" alt="Login to your XenForo admin area" width="515" height="325" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-xenforo/xenadmin.png" />
</Frame>

Navigate to Style -> General -> Settings.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-xenforo/xensettings.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=26d772f347c774ec2930a5d598848e3e" alt="Settings" width="676" height="146" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-xenforo/xensettings.png" />
</Frame>

Replace the Path to images field existing record (*/styles/default*) with the following:

```
http://cdn.site.com/styles/default
```

Instead of cdn.site.com type in the CNAME that you specified in the [Gcore Customer Portal](https://portal.gcore.com/cdn/resources/list). 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.

Click **Update Style Properties** to save your settings.

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.
