-
Integrate WordPress with CDNify by using the W3 Total Cache plugin. Make sure you’ve added a resource by following the Setup Your First CDN guide before continuing.
-
Login to your WordPress admin area - e.g. yoursite.com/wp-admin. Click on Plugins, select Add New, and then search for W3 Total Cache. Find the official W3 Total Cache in the search results and click Install Now.
-
Once installed, click Activate Plugin. A new menu item should appear on the left-hand side called Performance. After clicking on this, select General Settings.
-
Scroll down to the CDN configuration option. Select Enable, then choose the Generic Mirror option - Now hit Save all settings. You will notice that a red alert box appears with the message “A configuration issue prevents CDN from working. The “Replace default hostname with” field cannot be empty. Specify it here” – this is because the host name hasn’t been configured yet.
-
Jump to the Shared SSL section of this guide if you’re using CDNify’s default shared SSL, alternatively go to Custom SSL if you’re using a custom SSL certificate.
-
Shared SSL: In the Performance tab, select CDN. Go to Configuration, choose Auto (determine connection type automatically), and then add your shared SSL domain, e.g. demo123.a.cdnify.io. Test the mirror to make sure it’s working, if it’s good to go hit Save all settings.
-
Custom SSL: In the Performance tab, select CDN. Go to Configuration, choose Enabled (always use SSL), and then add your SSL domain, e.g. ssl.demo123.org. Test the mirror to make sure it’s working, if it’s good to go hit Save all settings.
-
Now select modify attachment URLs. Input your top level domain, e.g. mywebsite.com, then click Start.
-
Test: Changes should take effect instantly - Go to your website and open an image in a new window, the URL will show that content is now being served from the CDN. Alternatively, check your code by right-clicking and selecting View Page Source to see assets coming from the CDN.