API
The Gcore Customer Portal is being updated. Screenshots may not show the current version.
CDN
CDN
BillingCDN resources overviewOrigin groupPurgePrefetchReports
API
Chosen image
Home/CDN/Getting Started/Integrate CDN with CMS and other platforms/XenForo

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.

Login to your XenForo admin area

Navigate to Style -> General -> Settings.

Settings

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. Ensure that your CNAME record has been configured 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.

Was this article helpful?

Not a Gcore user yet?

Learn more about our next-gen CDN

Go to the product page