Changed Domains – Some Broken Images
-
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 addeddefine('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.pngHowever, 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.pngI 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.
- The topic ‘Changed Domains – Some Broken Images’ is closed to new replies.