WordPress: images return 404 after domain change
Texts and articles work, but images still try to load from the old domain. Saved media links may contain the previous URL or upload files have not been moved.
How to determine the source of the error
Read the full 404 path on the Network and see if it matches the old addresses.
See on the server if the file actually exists in wp-content/uploads at the desired location.
What to do step by step
1. Move missing files and correct domain references with a securely supported WordPress serialized data.
2 . Test thumbnails and different graphics sizes; play image metadata if necessary.
How to check the score
Images and miniatures open on new hosting, and HTML does not contain old non-active URLs.
What to do
Do not perform raw REPLACE in the database without including PHP serialization and backup.