Solution:
Assuming you have access to the database you can update the wp_options table amending the rows where the option_names are “siteurl” and “home”.
If you can’t amend those then you can add these to your wp-config file (setting the relevant paths):
define(‘WP_HOME’,’http://yourdomain.com’); define(‘WP_SITEURL’,’http://yourdomain.com’);