I set up a basic Wordpress installation (on a Raspberry Pi running Raspbian Stretch - Debian 9) using NGINX.
Recently I changed the hostname of my system (as part of a plan to ensure consistent naming across my systems) and everything seemed to be working successfully.
I wanted to move my Wordpress installation to a new system but found it was no longer working.
The basic home page came up, but the links to logos etc did not work. It soon became obvious, as the links were attempting to access oldhostname.local and this is somewhere encoded in the Wordpress database.
I restored the oldhostname and Wordpress is now working again.
Settings/General Settings the oldhostname is in Wordpress Address (URL) and Site Address (URL)
I could change this to my new hostname, but ideally would like to make this independent of hostname. (One aspect of the Raspberry Pi is that it is simple to clone SD Cards and I copy my installation to others with just a hostname change).
My question is can I make the Wordpress installation independent of hostname, and if so how?