Move Your wp-content Area

Just a quick tip today, but a favourite of mine. Moving your wp-content area. Why would you want to do this? It looks just that bit nicer to have your images uploaded to /media/ than /wp-content/. In this post we’ll learn how to tell WordPress to upload images and other media to /media/.

Really easy this. Click on ‘Miscellaneous’ under ‘Settings’ and then you’ll be presented with a screen looking something like this:

Changing the upload directory is as easy as changing the top field to anything you like – ‘media’ will upload images to yoursite.com/media, ‘images’ will upload images to yoursite.com/images. It’s a really simple to do and look just that much better. I think anyway.


7 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Liew Cheon Fong
November 24, 2009 5:14 pm

good for new blogs but for existing blogs, you will need to do redirect with mod_rewrite
.-= Liew Cheon Fong´s last blog ..Top 5 Antivirus Programs for Windows 7 =-.

Kel
November 22, 2009 6:17 am

Useful tip, thanks – but be aware there are still a number of rogue plugins that expect a path similar to “mysite.com/wp-content/plugins/”, so altering your wp-content path might break some plugins. Check your site to make sure.

Thomas Scholz
November 21, 2009 1:33 pm

It is even better to move all those files to a subdomain to allow your visitor’s browser more parallel HTTP requests.

If the local directory of your subdomain is /www/htdocs/username/_subdomain_files/ write this path into the first field and the public address (eg. http://files.example.com/) into the second.
.-= Thomas Scholz´s last blog ..Designlinks 9 =-.

Indrek
November 21, 2009 4:22 pm
Reply to  Thomas Scholz

Thanks Alex for this tip. Hadn’t even thought about changing it. The source would definitely look much nicer with “media” or something like that.

@Thomas: that’s a good point. And although some might not agree with this method because is reduces the number of DNS lookups, this method really works.
.-= Indrek´s last blog ..How To Run Multiple Instances Of Conky =-.