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

Hi,

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?

Thanks.

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:
    https://premium.wpmudev.org/blog/move-multisite-new-domain

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

    define('DOMAIN_CURRENT_SITE', 'yourdomain.com');

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

    define('WP_HOME','http://your-new-domain.com');
    define('WP_SITEURL','http://your-new-domain.com');

    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!

    Cheers,
    Adam

  • mpress

    Hi @Adam Czajczyk
    Thanks!

    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', 'h4bs.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('WP_POST_REVISIONS', 3 );
    define('WP_HOME','http://h4bs.com');
    define('WP_SITEURL','http://h4bs.com');
    /* 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 h4bs.com
    subsites: ../demo1
    /demo2

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.