Create a Pull Zone
Log in to your bunny.net dashboard and create a new Pull Zone with your ExpressionEngine site as the origin URL. For details, see How to create your first Pull Zone.
Edit your index.php file
You’ll need SSH or FTP access to your web server. Open the Uncomment it and define a global variable for your CDN URL, replacing the hostname with your Pull Zone:
index.php file in your site’s root and find this line:Use the variable in your templates
Update your templates to reference the new
{cdn_url} variable when linking to static resources. For example: