Moving a multisite from one url to another....


I have moved my multisite intstallation to another url.
It was working but still some old site names where in it. So I went to change them using the Search and Replace plugin advised here .
Because some of them where not changed I went to the db and changed them there.
Now I have access to all subsite dashboards but not to the main dashboard. also main site doesnot show, only a blank page...

What should I check and what do I need to do in order to have it back?


I can not grant access because primary site and network dashboard doesnot show up....

  • Adam Czajczyk

    Hey mpress,

    I hope you're well today!

    I think you may want to take a look at this guide here:

    Please make sure that you've changed this line in your wp-config.php file to match your new domain:

    define('DOMAIN_CURRENT_SITE', '');

    Also, make sure that you've added these lines to your wp-config.php file right above the "That's all, stop editing":


    There's also a chance that some values in the database has been omitted. You may want to double check it manually. There's a great reference on this in the aforementioned article.

    Give it a try please and let me know if it worked!


  • mpress

    Hi @Adam Czajczyk

    The point is that it was working. The move was made some time ago.
    I am now giving it the finishing touch so I thought I want to change every single place where the old site name was. Using (again) the Search and replaceplugin I saw some codes were not changed so I went to the db and changed there.
    Unfortunately I donot know what was changed when network went down....

    I have double checked my config, here the last lines:

    /* Multisite */
    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);
    define('WP_POST_REVISIONS', 3 );
    /* That's all, stop editing! Happy blogging. */
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    Where else could Ì ckeck?

    subsites are good, front and back end....
    primary site is
    subsites: ../demo1

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.