How to Fix Broken Images After Moving WordPress Website

From this tutorial you’ll learn how to fix broken images after moving WordPress website to another domain of hosting server.

Repairing Broken Images
  • First, log in to your hosting server cPanel and navigate to Databases block. You need to open phpMyAdmin tool.
  • Locate your current database on the left and click it to open the list of tables.
  • In the top panel open SQL tab and paste the following code into it (make sure that  you have the standard “wp_” database prefix; if not, use the one you’ve got for your database: e.g., if the prefix is “my“, instead of “wp_posts” use “my_posts“). You need to replace the old url and new url instances with your actual old and new URL website address.

https://gist.github.com/Shininglow/aa3b571f9c7c796d62b980654056fb23

  • Click on Go button to run the SQL query.
Ready-to-use website