• Resolved ryanrampersad

    (@ryanrampersad)


    Following Change The Site URL guide, I copied my entire WordPress installation and database and moved it to a different domain. The domains are different but the host is the same (essentially moving the contents from one folder to another). I copied the files via ssh and cp so they should have identical permissions and structure. In wp-config on the new domain, I added define('RELOCATE',true); to update the new domain’s site url and then used the Search & Replace plugin to change instances of the old domain to the new domain. For the most part, it worked, all of the links work and most of the images work except a few.

    An example works best here. These are from the archives on my blog. Old domain and New domain. On this page, there are a bunch of WordPress generated thumbnails. Some of the thumbs appear but others do not! It’s the same with the full-size image versions of those missing thumbs. Additionally, it’s not just in archives. If I page through my blog, some posts with images work fine but others images will not appear at all.

    I examined the URLs themselves to see if they were updated and they were.
    Old (works): http://ryan.ifupdown.com/wp-content/uploads/2010/08/Desk-1_003-150×150.png
    New (broken): http://blog.ryanrampersad.com/wp-content/uploads/2010/08/Desk-1_003-150×150.png

    However, if I run slugify the new site’s URL of the image, it works again!
    New (works when slugify-ed): http://blog.ryanrampersad.com/wp-content/uploads/2010/08/desk-1_003-150×150.png

    I really have exhausted my own abilities in figuring this one out, since the old domain didn’t have really have slugify-edURLs for images and since the two domains and installations are supposedly identical, I’m at a serious loss.

    Any help would be wonderful. Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter ryanrampersad

    (@ryanrampersad)

    This is now resolved.

    When I ran my zip command via ssh to pack all of the uploads folder into an archive, downloaded it and extracted it locally on Windows and then uploaded it back to its new location via FTP, it appears to have changed all of the file names to strictly lowercase.

    My simple fix was to just directly cp the files from the old location on the server to the new location on the server and it was completely fixed.

Viewing 1 replies (of 1 total)
  • The topic ‘Changed Domains – Some Broken Images’ is closed to new replies.