You should be able to change the wp-options.php file to reflect the correct site URL. I’ve included an article that talks about this procedure, along with changing the site URL in the database if necessary.
Ref: https://codex.wordpress.org/Changing_The_Site_URL
Hello,
You should able to change “wp-config.php” from root of the project.
You should add following two lines at the end of file:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
After adding this code, you can not change site_url/home_url from admin panel. So, you can also change home_url/site_url directly from database table wp_options.
Thanks
Didn’t seem to work. I had to reinstall WordPress and MAMP.
Thanks anyways!