Integration with Wordpress (G-Core Labs plugin)

Installing the plugin

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

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

________________.png

You can also download G-Core Labs plugin via the link
After successful installation, you will see the G-Core Labs plugin in the WordPress menu.

Working with the plugin

Integration with CDN

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

Important! All changes in plugin settings are automatically saved.

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

___________________.png

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.

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

To do this, activate the Advanced settings:

_________________________________.pngEnter the extensions one by one by clicking on the Add button. The added extensions will be displayed in the File types section.

Folders

Specify the paths to the folders you want to distribute via CDN in the Folders section.

There are available two configuration modes: basic and advanced.

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

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

To do this, activate the Advanced settings:

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

Important! 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

In the Exceptions section, add URLs of the files, which should not be distributed via CDN. Enter the URLs one by one by clicking on the Add button.

_______________.png

Plugin workflow

If you want to distribute a file via 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?
Recently viewed articles