This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Tiny CDN


Use an origin pull CDN with very few lines of code.

  • Works with custom /wp-content location
  • Does not support multisite installations

Pull requests are welcome on GitHub.

This plugins has no user interface.

Set /wp-includes (optional) and /wp-content (optional) CDN URL-s in your wp-config.php.

// No trailing slash!
define( 'TINY_CDN_INCLUDES_URL', '' );
define( 'TINY_CDN_CONTENT_URL', '' );


This section describes how to install the plugin and get it working.

  1. Upload tiny-cdn.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress


How to configure?

Hook into these filters before template_redirect time.

// Disable rewriting
add_filter( 'tiny_cdn_disable', '__return_true' );

// Don't rewrite for these users
add_filter( 'tiny_cdn_capability', function () { return 'edit_pages'; } );

// This is a regular expression to exclude single files
add_filter( 'tiny_cdn_excludes', function () { return '#\.php#'; } );


There are no reviews for this plugin.

Contributors & Developers

“Tiny CDN” is open source software. The following people have contributed to this plugin.


Translate “Tiny CDN” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Big typo in handling image thumbnails


  • Add support for Yoast’s wpseo_xml_sitemap_img_src filter


  • Filter post thumbnail too


  • First release on