Magento 2 CDN Integration

Before you take any steps please backup your site and database.

1. Log to your Magento Admin Panel

2. Click on the Stores in the Settings section and select Configuration

3. Select Web under General in the panel on the left

4. Open the Base URLs section

4. Inside Base URLs unsecured area update the following with your CDN URL or CNAME (You will find both under Manage CDNs in CDN77 CROP).

Below is an example considering cdn.domain.com is your CNAME and www.domain.com your Origin.

Base URL: http://www.domain.com - your Origin
Base link URL: leave default here - {{unsecure_base_ url}}
* Base URL for Static View Files: http://cdn.domain.com/static/
** Base Media URL: http://cdn.domain.com/media/

Magento 2 - Unsecured area

5. Open the Base URLs secured area and update following with your CDN URL or CNAME

Base URL: https://www.domain.com - your Origin
Base link URL: leave default here {{secure_base_ url}}
Base URL for Static View Files: https://cdn.domain.com/static/
Base Media URL: https://cdn.domain.com/media/

Magento 2 - Secured area

* For Base URL for Static View Files is recommended to enter the URL of the location on the CDN where static view files are stored.

For example: cdn.domain.com/static/ or cdn.domain.com/pub/static/

** For Base Media URL is recommended to enter the URL of the location on the CDN where media files are stored.

For example: cdn.domain.com/media/ or cdn.domain.com/pub/media/

When complete, click on Save Config. Congratulations, you are now using CDN77!

To confirm that the plugin is working view the page source of your website. If your URL paths are showing the CNAME (or CDN URL, depending on what you used), then you have successfully integrated your website with CDN77.