Hi. Older versions of the software stated that changing the URL was unsupported. At more recent versions we see this:
"If you need to change the hostname in your organization URL, contact Esri Professional Services or another trusted consulting partner for guidance."
Personally, I'm not aware of how it can be done. My understanding is that every item that exists on disk has the hostname encoded within it. So a migration to a new environment would 'point back' to the old environment. This would include WebGISDR tool.
There I typically advise clients to start again and then you an appropriate migration strategy to copy the content over, e.g.:
"As of 10.8.1, the and export and import group content operations can be used in the ArcGIS REST API to move content from one ArcGIS Enterprise organization to another. These operations are useful when moving content from a development to a staging environment or across disconnected environments."
This process effectively does a find and replace of the hostname (in content items) as it moves from acme to globalxcorp.
Scott Tansley
https://www.linkedin.com/in/scotttansley/