{"id":80154,"date":"2017-03-27T11:37:00","date_gmt":"2017-03-27T15:37:00","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=80154"},"modified":"2020-02-03T03:37:48","modified_gmt":"2020-02-03T08:37:48","slug":"correcting-image-links-wordpress-migration","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/correcting-image-links-wordpress-migration.html","title":{"rendered":"Correcting images links after a WordPress migration"},"content":{"rendered":"<p>We are glad to present you a new guidance on how to correct images links after a WordPress migration.<\/p>\r\n\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/OKzhi7a5oQ8\"><\/iframe>\r\n<\/div>\r\n<p> After moving your website to a new domain, you can face the broken images urls issue.<\/p>\r\n<p>In order to fix them and make the images show up properly, perform the following steps:<\/p>\r\n<ol>\r\n\t<li><p>Login to your Hosting Control Panel.<\/p><\/li>\r\n    <li><p>Locate the <strong>Databases<\/strong> section and click on the <strong>phpMyAdmin<\/strong> tool.<\/p>\t\r\n\t<\/li>\r\n    <li><p>Locate your <strong>database<\/strong> in the left-hand sidebar and click on it.<\/p>\t\r\n\t<\/li>\r\n\t<li><p>Now you can see a list of the tables on the left sidebar. Find the <strong>wp-posts<\/strong> table there and click on it.<\/p>\r\n\t<\/li>\r\n\t<li><p>Locate <strong>SQL<\/strong> on the top tabs list.<\/p><\/li>\r\n    <li><p>And add the following piece of code to the input area:<\/p>\r\n\t<pre class=\"brush:sql\">UPDATE wp_posts SET post_content=(REPLACE (post_content, '&lt;old url&gt;','&lt;new url&gt;'));<\/pre><\/li>\r\n\t<li><p> Replace old url with the old sitename and new url with the new site name. <\/p><\/li>\r\n\t<li><p>Click on the <strong>Go<\/strong> button.<\/p>\t\r\n\t<\/li>\t\r\n<\/ol>\r\n<p>Now you know how to correct image links after a WordPress migration.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=OKzhi7a5oQ8?width=1280&amp;height=720\" rel=\"prettyPhoto\">Correcting image links after a WordPress migration<\/a>\r\n<p>Browse our brand new <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\" title=\"WordPress Templates\" target=\"_blank\">WordPress Templates<\/a> and extend the functionality of your website.<\/p>","protected":false},"excerpt":{"rendered":"<p>We are glad to present you a tutorial on how to correct image links after a WordPress migration.<\/p>\n","protected":false},"author":87,"featured_media":80184,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[494,2572,983,785,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/80154"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=80154"}],"version-history":[{"count":9,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/80154\/revisions"}],"predecessor-version":[{"id":86209,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/80154\/revisions\/86209"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/80184"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=80154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=80154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=80154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}