it’s more a devops topic.
you will need to replace all occurences of the websites in your Database to the new URL’s.
like domain.org.uk/public
replaced with domain.org.uk
.
there is a nice wordpress plugin which can do this https://de.wordpress.org/plugins/better-search-replace/.