b2evolution CDN Integration
Updated on October 4, 2018
This tutorial shows how to complete a b2evolution CDN integration with KeyCDN.
Create a Pull Zone before you start with the b2evolution CDN integration.
Open
blogs/conf/_advanced.php
to set the path variables to point to the CDN.Define a new variable at the beginning of the file replacing
https://example-hexid.kxcdn.com/
with your Zone URL or Zone Alias:$cdnurl = 'https://example-hexid.kxcdn.com/';
Replace the following variables:
Old New (replace) $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;
That's all. Check the HTML if all the URLs have been rewritten properly.