> ## Documentation Index
> Fetch the complete documentation index at: https://gcore-doc-1256a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/________________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=ef7d44eb160421362b4c5cf3ed1f948e" alt="Install the plugin" width="553" height="233" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/________________.png" />
</Frame>

You can also download the Gcore plugin via the [link](https://wordpress.org/plugins/g-core-labs-cdn). 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.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/___________________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=10bd9486ab2b002bd9b56f30a7b9f585" alt="Integration with CDN" width="816" height="485" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/___________________.png" />
</Frame>

### 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.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/________________________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=3fc5f4e8ef050244f7ea6a40acec4042" alt="Specify the file extensions " width="830" height="419" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/________________________.png" />
</Frame>

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

To do this, activate the Advanced settings:

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_________________________________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=6e34a8f58aa04d8c40d1df42e75ce7a1" alt="Advanced settings" width="790" height="405" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_________________________________.png" />
</Frame>

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.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/__________________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=fd193bc802e7dcaa1a70546c2008d96b" alt="Folders" width="821" height="312" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/__________________.png" />
</Frame>

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

To do this, activate the advanced settings:

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_____________________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=5fc19bdc1184e991cf9335fa0628358d" alt="advanced settings" width="897" height="430" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_____________________.png" />
</Frame>

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.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1256a/EaY1YqcfSvD4McT0/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_______________.png?fit=max&auto=format&n=EaY1YqcfSvD4McT0&q=85&s=fddbeb57eb749e19059c7bff8a5f408e" alt="Exceptions" width="764" height="197" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_______________.png" />
</Frame>

### 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.
