Well this was a challenge!
I moved a WordPress blog from a subdomain to the root. The links were there but the images were not showing up!
I did a lot of searching on Google and tried some of the following suggestions:
- Under General Settings I modified the Site URL and the WordPress Address URL, which didn’t help.
- I clicked on Save Changes to update the Permalinks, which didn’t help.
- I used PHP Admin and searched through the database and still didn’t find anything.
- I looked at the .htaccess thinking the RewriteBase had an extra field and the Rewrite Rule and they were fine.
I kept thinking; there has got to be a better way!
Then I compared the links to the images in a recent post and they were different. (Should have done this in the beginning.) The new links had ‘/wp-content/uploads/2012/12/picture.png’ and the old links had ‘wordpress/wp-content/uploads/2012/12/picture.png’.
FINALLY I installed The Search and Replace Plugin which searches through your database and will replace the string. I clicked on the Settings for the Search and Replace plugin add chose to only change the string in the Content only.
It Worked! This saved me tons of time because I did not have to modify each image in each post.
Hopefully this will help someone else.