Fix Images and Broken Links by Updating Paths in WordPress
Today we will learn how to fix broken images link issue in WordPress, after migrating site from local server to live server or (one domain to another). This is a very common issue.
The simple way to fix this issue is just update post_content in wordpress database
Just run below mention SQL query in your database using phpmyadmin
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yourlivesite.com/');
Note: replace the table prefix according to your WordPress table prefix
If your website is created with Elementor then you need to perform a additional step to change the broken links.
Replace the URL in Elementor tools
That’s it, after performing these step your broken link issue will be resolved.