Move Your wp-content Area

Move Your wp-content Area

Posted on 21. Nov, 2009 by Alex Denning in Quick Tips

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.

No related posts.

Follow on Twitter! Subscribe!
Alex's Gravatar

Alex Denning is the founder of WPShout. A WordPress developer from London, Alex co-founded WPShift at the start of 2010 where he sells awesome WordPress themes.

You can find Alex on Twitter and at AlexDenning.com.

7 Responses to “Move Your wp-content Area”

  1. Thomas Scholz

    21. Nov, 2009

    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 =-.

    Reply to this comment
    • Indrek

      21. Nov, 2009

      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 =-.

      Reply to this comment
    • Alex Denning

      22. Nov, 2009

      It’s debatable whether this actually has any effect, but theoretically it’s a good idea. Even better would be to employ Amazon S3, something I’m looking at at the mo.

      Reply to this comment
  2. Kel

    22. Nov, 2009

    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.

    Reply to this comment
  3. Liew Cheon Fong

    24. Nov, 2009

    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 =-.

    Reply to this comment
    • Alex Denning

      24. Nov, 2009

      It won’t move anything, only stuff you upload from change onwards.

      Reply to this comment

Leave a Reply

Please use your real name when commenting. Wrap code in <code> tags and make sure HTML is encoded. You can use regular HTML like <a href="... etc.

Get yours questions answered quicker

If you're using this post for paid work and have a question of any complexity then please ask at WPQuestions where you'll get a prompt response.