Host wp-content on other domain, much like a CDN

In WordPress Dashboard > Settings > Media and fill the field “Full URL path to files” with your other domain. See the screenshot below:

Media Settings

EDIT: I thought it would be obvious, but it isn’t. Here’s what you exactly need to do:

  1. You should map your domain to point to:

    1. public_html directory, IF it’s also your WordPress installation’s root directory.

    2. public_html/subdirectory/ directory, IF your WordPress installation is in its own subdirectory.

    3. If you have a custom path set in “Store uploads in folder”, then your domain should point to the directory ABOVE the custom uploads directory.

      For instance, lets consider this is how your settings are:

      Store uploads in this folder:media/uploads/
      (implies public_html/media/uploads/ directory — which is, as you guessed it, outside your WordPress installation directory)

      Full URL path to files:http://newdomain.com

      Then, you should make sure, http://newdomain.com points to public_html/media/uploads/ directory.

  2. Now, add the domain (or sub-domain) in the field shown in the screenshot above. Simply adding the domain, without mapping it to your WP installation, won’t do the job.

If you don’t know how to point your domain, it’s a totally different question, and is out of the scope of WordPress.StackExchange. Google it, you should definitely get your answers. 🙂


And as for hosting your images on a different server and different domain, you have no better choice than W3 Total Cache <– yes, a caching plugin for WordPress.

Leave a Comment