Skip to content

Instantly share code, notes, and snippets.

View ajbevau's full-sized avatar

AB ajbevau

  • Melbourne, Australia
  • 18:50 (UTC +10:00)
View GitHub Profile
@ajbevau
ajbevau / cdn77-uri-rewrite.php
Created July 9, 2014 15:32
WordPress Must Use Plugin which rewrites asset URI's to CDN77.
<?php
/**
* WordPress Must Use Plugin which rewrites asset URI's to CDN77.
*
* This is largely inspired my Mark Jaquith's WP_Stack CDN plugin
* https://github.com/markjaquith/WP-Stack/blob/master/WordPress-Dropins/wp-stack-cdn.php
*
* Options that should be set in wp-config.php
* CDN77_ENABLE - Set to TRUE if the CDN should be enabled
* CDN77_DOMAIN - The domain name for the CDN77 subdomain in use