> ## Documentation Index
> Fetch the complete documentation index at: https://bunny.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ExpressionEngine

> Configure bunny.net CDN with ExpressionEngine to accelerate your website and optimize asset delivery.

Setting up Bunny CDN with ExpressionEngine takes only a single line of configuration plus a template change.

**1. Create a Pull Zone**

Log in to your [bunny.net dashboard](https://dash.bunny.net) and create a new Pull Zone with your ExpressionEngine site as the origin URL. For details, see [How to create your first Pull Zone](/docs/cdn/quickstart.md).

**2. Edit your index.php file**

You'll need SSH or FTP access to your web server. Open the `index.php` file in your site's root and find this line:

```php theme={null}
// $assign_to_config['global_vars'] = array();
```

Uncomment it and define a global variable for your CDN URL, replacing the hostname with your Pull Zone:

```php theme={null}
$assign_to_config['global_vars'] = array('cdn_url' => 'https://YOURZONE.b-cdn.net/');
```

**3. Use the variable in your templates**

Update your templates to reference the new `{cdn_url}` variable when linking to static resources. For example:

```text theme={null}
{cdn_url}uploads/image.jpg
```

**4. Test the integration**

Load your site and confirm that the URLs for your static content now include your Pull Zone hostname. Once they do, ExpressionEngine is serving assets through Bunny CDN.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.