• Resolved MarsHottentot

    (@marshottentot)


    Alright, I asked this a few days back in a fairly convoluted manner. I believe my old post may have got buried with my numerous posts as I started to understand more clearly what the actual problem is. With 7 replies – 6 from me and one question from a moderator- I think the impression of an active discussion was given when when looking at the subject line / replies when, in fact, that is not the case.

    So here I’ve consolidated and simplified the information from the old topic!

    Okay, so on with the question:

    I recently moved a blog to a new directory. Everything is working with but one problem: My media. I’ve uploaded all image / audio files to the new directory in the FTP along with everything else, but the blog still believes that the images are stored in the old directory.

    An example would be
    newblog . com/wp-content/uploads/2010/06/crazypic.jpg
    but the new blog, when hovering over an empty image link reads
    oldblog . com/wp-content/uploads/2010/06/crazypic.jpg

    I tried uploading a new image to see what happens and it does this strange redirect which may give some insight as to what is going wrong here:

    When uploading an image, the link URL is https://newblog .com/?attachment_id=3632 which, when clicked takes you to an entirely new page specifically for said image. When clicking on that image, it is then opened (in Shadowbox) with the correct address https://newblog .com/wp-content/uploads/2010/07/0-587-062495-the-image-i-speak-of-204×300.jpg.

    Does this illuminate anything, folks?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Anonymous User

    (@anonymized-3085)

    links contained in posts and pages will not have been changed when you moved from oldblog to newblog. So you’d have to edit all those to point to the correct url.

    There are a few methods of doing this, someone may even have written a plugin to help you out.

    Thread Starter MarsHottentot

    (@marshottentot)

    Elfin – thanks, I’ll look into it!

    Thread Starter MarsHottentot

    (@marshottentot)

    Well, I found no plugs that do this (great idea though). Which PHP file should I be editing to reflect this change? wp-post? Not sure…

    Anonymous User

    (@anonymized-3085)

    either manually page by page, or via the database.

    Thread Starter MarsHottentot

    (@marshottentot)

    Wah! That’s what I was afraid of!

    Thread Starter MarsHottentot

    (@marshottentot)

    Thank you, BTW!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image redirect from old directory to new not working…’ is closed to new replies.