I will try to explain myself as best as possible:
- I have a live WordPress website which has over 600 posts and 1000 images used in these posts.
- I have a local copy running at
http://localhost/my-wordpress-site
. - I use WP Migrate DB to export posts from the live site.
- When I export with WP Migrate DB, it finds and replaces the live site URL (//my-wordpress-site.com) with the local URL (//localhost/my-wordpress-site) so that links will work locally.
The problem I have is that it changes the links to all the images. My goal is to keep the image links the same (i.e. pointing to the images on the servers) so I don’t have to download thousands of images to my local machine.
How can I keep the images URLs pointing to the images on the server? Do I have to modify the DB directly?