futtta's blog

Frank Goossens' Twitterless twaddle

Archive for the ‘static subdomain’ tag

Quick & dirty “CDN” in WordPress

without comments

If you want a quick & dirty way to speed up WordPress without any plugins:

  1. create a subdomain in DNS, e.g. static.yourblog.org
  2. add that subdomain as a ServerAlias to your Apache config (remember to restart apache)
  3. add the following to your wp-config.php:
    define('WP_CONTENT_URL','http://static.yourblog.org/wp-content');

If you want to do this the right way; plugins such as WP Super Cache or W3 Total Cache do a much better job at this.

Written by frank

July 30th, 2011 at 5:23 pm

Read more about: lang:en,performance

Tagged with , ,