Loading Search...

Thursday, February 04, 2010

offloading wpmu themes and plugins to cdn, fast & easy, without plugins

one of many ways to speed up your wpmu is by offloading your themes and plugins url to CDN.


there are many plugins to let you do this. you can also use htaccess to rewrite all your /wp-content url to cd.

but i just found out, you can do it very easily without any plugins or htaccess rewrite. just edit your wp-config.php like this:

define( 'WP_CONTENT_URL', 'http://your.cdn.host/wp-content');
define( 'WPMU_PLUGIN_URL', 'http://your.cdn.host/wp-content/plugins');

that's all it.
now all your wp-content and plugins url will be change to your.cdn.host and no cost for htaccess rewrite or plugins processing.

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

No comments: