blogs/conf/_advanced.php. This method applies when the site still uses the default layout with that file, and the default asset URL variables ($rsc_url, $skins_url, $media_url) still build from $baseurl. If the installation exposes an Assets URLs / CDN panel in the admin UI instead, configure the custom domain there — see the b2evolution Assets URLs / CDN settings documentation.
Before editing b2evolution, collect the custom domain value to put in $cdnurl (for example, cdn.example.com):
1
Open the CDN resource
In the Gcore Customer Portal, navigate to CDN > CDN resources and open the resource.
2
Copy the custom domain
Note the custom domain shown for the resource — this is the hostname used in asset URLs and in
$cdnurl.3
Confirm the DNS CNAME
Confirm that the custom domain has a CNAME record pointing to the value shown on the Set up your DNS page (
cl-****.gcdn.co). Do not put the gcdn.co hostname in $cdnurl.4
Confirm SSL
Confirm the custom domain has a valid SSL certificate so assets can load over HTTPS.
-
Open
blogs/conf/_advanced.phpin the b2evolution installation. -
Add a new variable near the top of the file, set to the custom domain with
https://and a trailing slash: -
Replace the following variable assignments so static resources load from
$cdnurlinstead of$baseurl: -
Save
blogs/conf/_advanced.php. - Confirm the integration by opening the browser developer tools (press F12), selecting the Network tab, and refreshing the page — static files should load from the custom domain over HTTPS instead of the origin domain.