Moving WordPress – Media Files Not Displaying

I recently changed hosts and moved my blogs using the standard procedure to move WordPress across hosts. The text content displayed properly but the images were displaying as broken links even though the images were present on my server. This is how I fixed it after spending 30 minutes googling for the solution:

  1. Ensure that the wp-content folder has 755 permissions. (Command in Unix is “chmod 755 wp-content/”
  2. Ensure that the uploads folder and all its subfolders in the wp-content folder also have 755 permissions. (Command in Unix is “chmod +R 755 uploads/”)
  3. If you have custom Permalinks then go to Settings->Permalinks, select Default and hit Save. Note: You can then change the Permalinks again to your original structure after changing them to Default. This step was what solved the issue for me.

That’s it. Once I made changes in the 3 steps above, all my images reappeared in my posts and my WordPress sites were now fully migrated to my new hosts. If this helps you please leave us a comment below.

You can also read our Beginners Web Hosting Guide.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge