Broken Image Path
-
I have searched the forum but cannot find an answer for a specific issue I am having with images after a move of my blog. I saw a lot of similar issues but no specific answer for my issue.
Prior to the move my blog was in a directory structure like this: http://mysitename.com/blog (sub-directory)
I changed the domain name and moved the blog to a new hosting account with the directory structure now http://mysitename.com (root directory)
I got everything to work except that none of the old images in each post are showing. I checked a single post and the image path was shown as: /blog/wp-content/uploads/cc/imagename.jpg
When I changed the single post to: /wp-content/uploads/cc/imagename.jpg the image now shows.
I realize of course that I moved the blog from a sub directory structure to a root directory structure. What I am trying to find out is where can I go to make an all encompassing change that will point all prior posts to the the new structure (/wp-content/uploads/cc/imagename.jpg vs /blog/wp-content/uploads/cc/imagename.jpg) as opposed to having to go through each and every post to change it.
I already tried going to the Settings/Miscellaneous and putting wp-content/uploads as the path to store images but I realize this is only going to affect new posts and not make a change to the old posts.
Is there a .php file I can change or something in the MYSQL structure to make this change so it is all encompassing for the old posts?
The topic ‘Broken Image Path’ is closed to new replies.