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

Integrate CDN resource with WordPress (Gcore plugin)

Install the plugin

Go to your WordPress admin panel, select Plugins - > Add new. In the plugin search box, type "Gcore CDN". Install the found plugin.

To activate the plugin, click on the Activate button or go to Plugins -> Installed.

Install the plugin

You can also download the Gcore plugin via the link. After successful installation, you will see the Gcore plugin in the WordPress menu.

Working with the plugin

Integration with CDN

To integrate your site with the Gcore CDN, go to the plugin settings: find it in the menu and click on CDN Settings > General.

Note: All changes in plugin settings are automatically saved.

Activate the Enable CDN checkbox, fill in the Personal domain field, and click Save.

Integration with CDN

File types

Specify the file extensions that you want to distribute via CDN.

There are available two configuration modes: basic and advanced.

1. In basic mode, you can select file extensions offered on the page.

Specify the file extensions

2. Use advanced mode if you need to add specific file extensions.

To do this, activate the Advanced settings:

Advanced settings

Add the extensions one by one. They will be displayed in the "File types" section.

Folders

Specify the paths to the folders you want to deliver over the CDN in the "Folders" section.

Two configuration modes are available: basic and advanced.

1. In basic mode, you can select folders offered on the page.

Folders

2. Use advanced mode if you need to add specific folders paths.

To do this, activate the advanced settings:

advanced settings

Add the paths one by one. The added folders will be displayed in the section.

Note: If you do not specify a folder, adding a personal domain indicated in the General section to the URL of files will depend on the file extension.

Exceptions

Specify URLs of the files that should not be delivered over the CDN in the "Exceptions" section. Add the URLs one by one. 

Exceptions

Plugin workflow

If you want to deliver a file over the CDN, your domain name in the file URL will be replaced with the personal domain that you specified in the General section.

Request processing logic:

  • Is the URL from which the content is requested in the Exceptions section?
    • If yes, the domain name substitution does not occur, the file is distributed as usual.
    • If not, or exceptions are not specified, then check the next point.
  • Is the content in the folder listed under Folders?
    • If yes, the domain name substitution does not occur, the file is distributed as usual.
    • If not, or folders are not specified, then check the next point.
  • Are extensions included in the list of extensions for which the URL changes?
    • If yes, the domain name substitution does not occur, the file is distributed as usual.
    • If yes, then a personal CDN domain is substituted.

Was this article helpful?

Not a Gcore user yet?

Learn more about our next-gen CDN

Go to the product page