I am getting very confused. I used to take my website on my dev. server, and copy the files over to my live server, export the database in phpMyAdmin, import it via phpMyAdmin into the new database server, change the
home url and voila, the site migrated fine.
All the image URLs worked fine, it seems they just used the
SITE_URL for the domain part.
Then I migrated my website with WP Migrate. Suddenly, exporting via phpMyAdmin leaves all the image URLs wrong. I have to do a find and replace with WP Migrate to change them all. I don't understand, how come they are suddenly hard coded?
In short, are image URLs hardcoded or do they take the domain part from the SITE URL?