Support » Fixing WordPress » Cleanup uploads folder, Media Library db structure

  • Jan Fabry


    I am doing an upgrade and cleanup of an old blog that started on, then moved to self-hosted WordPress 2.1, and currently is on 2.3. Images in the posts are scattered around: most of them are in /wp-content/, but not all in /wp-content/uploads/ or /wp-content/uploads/year/month/. Others still reference the image servers. I want to consolidate them all in /wp-content/uploads/year/month/, which I think is the “correct” place? This should make later upgrades easier.

    What is the best way to do this? I would like to update the metadata too, so that the Media Library can manage all of them. I could not find any documentation on this, so sorry if I missed it, please point me to it.

    Of course, I would provide redirects from the old locations to the new. What is the best way to do this? A template 404.php, of a plugin? I would like to add some logging, so we can find the referring pages and maybe correct them.

Viewing 1 replies (of 1 total)
  • I don’t think there really is a ‘correct’ place to store media other than ‘/uploads/’ but you can store media anywhere the server can write. The year/month format might make sense for you, it might not.

    I don’t really know of an easy way to consolidate your stuff. Sorry. You might look through the plugin repository.

Viewing 1 replies (of 1 total)
  • The topic ‘Cleanup uploads folder, Media Library db structure’ is closed to new replies.