A CDN (Content Delivery Network) can be described as a life saver for your regular hosting server. If you have a high traffic WordPress blog then you must consider switching to a CDN which will reduce much load off your server. Now, there are lot of plugins which will easily help you to integrate a CDN with your WordPress installation.
However in this article we will tell you how to integrate a CDN in to your Wordoress installation without using a Plugin. And as they say, lesser the number of plugins you use, the faster your WordPress site becomes!
This tutorial has been written assuming that you have already configured your CDN and is pointed to a location say: http://cdn.myblog.com/
Part 2: Serving Dynamic WordPress files like post images, etc. using the CDN
Now in order to serve the images in your Posts via a CDN all you need to do is add this function (the code snippet below) to the functions.php file which is present in your theme's folder.
In case you are facing an issue implementing this, you can write to me at firstname.lastname@example.org
Related Posts by Tags: cdn, filter, Hack, no plugin, plugin, Wordpress