The Gcore Customer Portal is being updated. Screenshots may not show the current version.
BillingCDN resources overviewOrigin groupPurgePrefetchReports
Chosen image
Home/CDN/Getting Started/Integrate CDN with CMS and other platforms/Magento

Integrate CDN resource with Magento

Before you take any steps, please back up your files and database. The plugin works only with default CMS pattern. If you manually changed CMS patterns, the plugin might not help you.

For additional information about the Magento platform, please refer to the Magento official website.

Login to your Magento Admin Panel. Click the System tab at the top navigation bar and choose Configuration as shown in the picture below.

Scroll down to the bottom. In the Advanced section select Developer where you will see two sections: JavaScript Settings and CSS Settings. 

Advanced section

Choose Merge JavaScript Files and Merge CSS Filesoptions. Note that this may affect the design of some e-shops so you need to test this. But in general, it is recommended to enable these options to reduce the number of requests.

Then go to the General section and select the Web. Here you will find two sections: Unsecure and Secure.

If your website is operating without SSL certificate (HTTP), you should select the Unsecure section. If your website is operating with SSL certificate (HTTPS), you should select the Secure section.

Secure section 

Type in your CNAME that you specified in the Gcore Customer Portal. Ensure that your CNAME record has been configured in a proper way before using it for integration.

Click Save Config to save changes.

Use the Current Configuration Scope drop-down menu to choose Main Website.

Starting with sidebar follow this way: Web > Unsecure > Base Skin URL. Remove the tick from the Use Default box and type in your CNAME in the Base Skin URL field. 

Base Skin URL  

Save changes.

Integration has been completed! We highly recommend you to check the HTML code of your web page to ensure that URLs have been rewritten properly from your original ones to CNAME from the Gcore Customer Portal.

To do that, press F12 or open Developers Tools in your browser, choose the Network tab and refresh the page. All static files should have your CNAME in URLs.

Was this article helpful?

Not a Gcore user yet?

Learn more about our next-gen CDN

Go to the product page