> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/________________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=cbfd8f2edaa52cd668d932229dcfdfa4" 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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/___________________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=0f12a0f8979534ab7f215fb59c9984fa" 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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/________________________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=3bd2e28eac7cbdf15acf3c040fabe409" 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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_________________________________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=d02c12a70cf468f307269defb59e75eb" 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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/__________________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=2cd7f05d161d756efe2a3d31665c39bd" 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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_____________________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=000e9093ed51069859b14220b6c2670e" 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/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/wordpress/integrate-cdn-resource-with-wordpress-gcore-plugin/_______________.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=e2bf14a8cc14399fe5fe1b5c86fc1d12" 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.
