Reasons why posts that rely on external images and hotlinks break after migration
- My image and the image of others are fundamentally different from the beginning.
- Why do issues often surface in older posts rather than immediately after a migration?
- The primary reason for the broken image is not the file itself, but the address.
- Why is it more dangerous to change all addresses at once?
- Before and after a migration, be sure to verify the origin of the images.
- Dividing the migration scope using LUX Content Migration.
- Frequently Asked Questions.
- WordPress-related links
Before the migration, the posts were functioning normally, but upon arrival on the new server, only the images disappeared. The posts and menus open correctly, but the essential images are missing.
Could the file have gone missing, or did the image find another home? The reasons why images break after moving a WordPress domain or server usually lie in these two questions.
My image and the image of others are fundamentally different from the beginning.
When an external image is used, it means that my post is referencing a file located on another server. Conversely, hotlinking refers to the situation where another website directly uses an image hosted on my server.
Both appear similar because the images are visible on the screen. However, one involves using someone else’s warehouse, while the other involves someone taking items from my warehouse.
According to the official WordPress documentation, the URL of an image within a post can be stored in the post content area of the database. If a post contains an image path from old-example.com, even if you copy the files and the database to a new server, that string will not automatically change.
If it is an absolute address that directly points to a specific host, regardless of the current website, this is even more likely. Because the address points to the house from before the move, even if the same photo exists in the new house, the browser will look for the old house.
If an address remains, the image stops loading.
Why do issues often surface in older posts rather than immediately after a migration?
This issue does not cause the entire site to stop functioning at once. Therefore, it is detected later.
In the 2025 WordPress support forum, a post described a case where, even after migrating thousands of posts to a new host, some images continued to point to the old host’s address. It was also reported that images did not automatically appear in the new media library in some cases.
The main screen and the most recent posts are working correctly, but only the photos and thumbnails of older posts are silently disappearing. This issue is easily missed by administrators until visitors report the problem.
The official WordPress migration documentation also states that after changing the site address, existing media links may still point to the old folder. This is because moving files and updating the addresses within posts are two separate tasks.
Even if the file is moved, the address remains.
The primary reason for the broken image is not the file itself, but the address.
In one line, the answer is as follows:
Migration only copies files and databases; it does not automatically change external image addresses within posts, nor does it modify access conditions for the origin server.
Even if the same photo exists in the new media library, if the address within the post points to old-example.com, the browser will not find the new photo. It sends a request to the old address and receives a 404 response or a blocking signal from there.
The key point is not the photo itself, but the request path.
Hotlinking can also reveal problems at the same time. According to Cloudflare, hotlink protection can identify requests originating from other sites and prevent the delivery of images.
After a migration, if the domain or image provision policy changes, photos that were visible until yesterday may suddenly disappear today. It’s not that the photos have run away; it’s as if the gatekeeper has changed.
Why is it more dangerous to change all addresses at once?
The most common misconception is that simply changing all old domain names to new ones will resolve the issue. However, if we were using images from an external server, the new server may not have the actual files.
At that time, simply replacing the address will only give the broken link a new appearance. While it will display a new address, the underlying problem remains: the associated image cannot be found.
Simply changing the address will not create a file.
The official WordPress documentation also warns that when changing addresses throughout the database, you should first create a backup and verify the meaning of each item. This is because not only the content of the posts, but also the addresses used by external services, can be changed incorrectly.
It is not necessarily the correct solution to unconditionally enable hotlink protection. Cloudflare states that enabling this feature may cause images to not be visible from external services such as Google Images, Pinterest, and Facebook.
While it might seem safer to fix each item individually, when dealing with thousands of posts, it is difficult for a person to visually verify all of the content and background images. Separate tasks are required, such as finding the address, verifying the existence of the actual file, and testing whether external display is not blocked.
At this time, it is necessary to distinguish between the roles of the migration tool and the address verification process. LUX Content Migration exports the selected posts, pages, categories, and media to a dedicated file, and then imports posts, pages, comments, authors, and media into the new site.
Before importing, you can check the number of new posts, comments, and required images that will be created. However, this feature cannot automatically and collectively replace external image addresses stored in the body of the content, so after importing, you must separately perform a search for the old host and verify the actual response.
It is difficult to verify everything with the naked eye.
Before and after a migration, be sure to verify the origin of the images.
First, if the images are divided into two categories, the judgment becomes easier.
- Images in my media library.
- Images loaded from external websites or external storage.
If it is my image, I back up both the files and the database before the migration. After the migration, I search the content of the posts for old hostnames such as old-example.com or old-cdn.example.com.
When search results appear, do not only check if the address has changed, but also verify whether the actual image responds at that address.
The picture will appear only if both the address and the file are correct.
If the image is from an external source, first confirm the usage rights and the possibility of continued availability. If the image needs to be stored for a long time, it is safer to move only the necessary images to your media library or a storage location that you can directly manage.
If the problem is that other sites are using hotlinks to display your images, do not immediately enable the global blocking function. First, check if the main posts, RSS feed, social sharing, and image search are functioning correctly. Then, you should determine the specific paths to exclude and establish your blocking policies.
Even if you only change the domain and maintain the same server files and database, a check is still necessary. This is because you need to verify that the old addresses mentioned in the posts match the actual file locations.
On my website, you only need to check the source and address.
Dividing the migration scope using LUX Content Migration.
When migrating a website, it is necessary to distinguish between what data will be moved and what data will be verified. LUX Content Migration exports the selected posts, pages, categories, and media, and imports posts, pages, comments, authors, and media into the new site. General settings, reading settings, comment settings, permalinks, widget placement, and menu structure can be applied separately from the content, which is useful for defining the scope of the migration.
The image address issue needs to be checked separately after the import is complete. Before importing, you can preview the number of new posts, comments, and necessary images. If problems arise after the task, you can delete the newly created posts to revert the import status. If a connection between the existing address and the new address is necessary, review the suggestions and the 301 redirect feature provided by the add-ons “Automatic redirect suggestions” and “Redirect management,” but the actual availability of external images and the replacement of the main text address should be checked separately.
Frequently Asked Questions.
Q. Can the image be broken simply by changing the domain?
A. That is possible. Even if you maintain the same server, if the absolute address of the old domain remains within the content, the browser will request the old address instead of the new one.
Q. What should I check first on my website?
A. First, search for any remaining old hostnames in the content, and check whether the actual image is responding to that address. If it is an external image, you should also check whether its use is permitted and whether the origin server is still providing it.
Q. Can this problem be easily solved using a tool? What kind of tool should be used?
A. You can use tools to help with address searching and replacement, but you should first create a backup. After the replacement, you must directly verify that the actual files exist at the new address and that the external display is functioning correctly.
Q. Does the broken image address also get corrected using only the content migration tool?
A. The task of transferring content and the task of correcting the image addresses stored in the body text are different.
LUX Content Migration provides a function to move posts and media to a new site, but it cannot be described as automatically replacing external image addresses in bulk. After the migration, you need to separately perform tasks such as searching for the old host, verifying the actual image response, and setting up redirections if necessary.