Saturday, November 28th, 2009

Setup a separate sub-domain for media files in WordPress

You can move everything in your wp-content to a separate domain or sub-domain (for example: ) hosted in the same server. For this, create a sub-domain first, using your web control panel or by editing apache configuration and adding A records to DNS manually. After DNS propagated, copy all directories from your existing wp-content to the document root of your new (sub)domain. Set WP_CONTENT_DIR and WP_CONTENT_URL in your wp-config.php