Date Posted: 25-12-2017

In this post we will explain how to change site url in the new moved domain.

Step 1: Open the wp-config.php and edit define(‘DOMAIN_CURRENT_SITE’, ‘’);

define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', '');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Step 2: Open mysql or phpmyadmin and run the following query.

UPDATE wp_options SET option_value = replace(option_value, '',') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, '','');

UPDATE wp_posts SET post_content = replace(post_content, '',');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'','');

UPDATE wp_site domain='' where id=value

UPDATE wp_blogs SET domain='' WHERE blog_id=value;

Leave a Reply