You need to update five different tables in the database in order to change the domain, as well as updating the wp-config.php
file
The following SQL script takes care of updating all tables in one go. Make sure to replace newdomain.com
and olddomain.com
(minus the http://
at the begining and /
at the end) with the domain you want to change to before running the SQL commands
In wp-config.php
, update the following line:
define( 'DOMAIN_CURRENT_SITE', 'newdomain.com' );