I’m new to Kirby, trying to assist a client who has it running on WebFaction (which is going offline soon). We’ve moved all of the static files to a new server running Apache/PHP8, etc - everything seems to be working fine after moving over .htaccess, etc.
However, the image URLs seem to have shifted even though the files have remained the same. Not all of them, but some of them have shifted. But browsing the old server and new one and inspecting this element, this part (but only this part) of the URL has changed.
The media hash is also based on the filesystem root of the file. So if the site is stored at a different location on the new server, all these roots change, so all hashes change.
If you need to preserve the original URLs, you can set this option in config.php to generate a custom salt for the hash:
So then if we moved the files over from the old server to the new one and retained the root as well as modification dates, then the URLs will not change? That might be easiest for us to do in this case.