This tutorial assumes you have already created a Site.
-
Connect to your ftp account.
-
Navigate to folder library
-
Edit file config.php and add below two lines:
$config ['externalDataUrl'] = 'http://site.company.stackpathdns.com/data';
$config ['javaScriptUrl'] = '
http://site.company.stackpathdns.com/js';
-
Login to your XenForo admin area.
-
Navigate to Style -> General -> Settings.
-
Under field Path to images replace existing content (/styles/default) with following:
http://site.company.stackpathdns.com/styles/default -
Click on Update Style Properties to apply your settings.
-
All Done!
To ensure you implemented the StackPath Secure Content Delivery(SCD) correctly, you can view the source code of any page to confirm that the SCD domain is being used for static assets instead of your origin domain. You can also use tools like pingdom and webpagetest that can give you more detailed reports on your SCD implementation status.