Hi
I want to move a database with a website to another server and run the website from that machine. I'm developing the webiste on the old server, but at a given point, I want to transfer it to the real server and domain and continue there. So, I've taken a backup of the old one and restored it on the new one.
If I then connect to the new machine via the browser, it turns out that certain images (like background images in caroussels and some others, mostly coming from Unsplash) are not displaying. Some others are displaying fine and are also coming from Unsplash (e.g. cards with a picture).
When looking at the source view, it displays the url of the original server (external ip address). If that old machine is still running, the images on the new one are coming through, since the source is still available; as soon as I turn the old machine off, the images on the new machine are gone and also the new server seems to respond much more slowly. It's looking for these pics and can't find them.
Now, how can I solve this? After doing a backup on the old machine and then a restore on the new one,
Is there a simple way to replace all the <old url> references to the <new url> reference? Or can I avoid that, when uploading images (from Unsplash), it uses the full url instead of simply putting /web/image/…? Strange that some image sources are showing the full path and some aren't. The former are creating the issue in my case.
Any ideas, anyone?
Thanks.
Hi,
If you can open the back up in a text editor you can search and replace the IP address.