Broken Images and Style

The URL for a media item is stored in the database for that item. The URL includes the domain name.

If you move a site to a new domain, the URLs in the posts database are not necessarily changed. (And there are often other items that might not be updated to the new domain name.)

Your best bet is to use a search and replace plugin to search for olddomain.com and replace with newdomain.com . I’ve had good luck using the “Better Search and Replace” plugin to do this on sites that I have moved.

Of course, back up your database before any such action, just in case something goes wrong.