Migration plugins redirecting to network root on Multisite subdomain install — subsite WP Admin sessions not staying on subsite

Hi everyone,

I’m running a WordPress Multisite network on Kinsta using subdomains (e.g. cabenefits.noveng.kinsta.cloud) and I’m having a persistent issue when trying to migrate content into individual subsites.

The Problem:
Whenever I access a subsite’s WP Admin (cabenefits.noveng.kinsta.cloud/wp-admin) and attempt to use any migration plugin, the session redirects back to the root network site (noveng.kinsta.cloud) instead of staying on the subsite. This happens consistently across multiple plugins including Migrate Guru, WP Migrate, and others.

What I’ve already tried:

  • Added define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’]); to wp-config.php
  • Confirmed SUBDOMAIN_INSTALL is set to true
  • Confirmed DOMAIN_CURRENT_SITE is set correctly
  • Network deactivated plugins and activated them only on the subsite
  • Accessed the subsite WP Admin directly via URL (cabenefits.noveng.kinsta.cloud/wp-admin)
  • Tried accessing migration plugin pages directly via URL (cabenefits.noveng.kinsta.cloud/wp-admin/admin.php?page=migrateguru)
  • Confirmed my user account is a Super Admin on the network
  • Kinsta support suggested the COOKIE_DOMAIN fix but it did not resolve the issue

My wp-config.php multisite section:
define( ‘WP_ALLOW_MULTISITE’, true );
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
define( ‘DOMAIN_CURRENT_SITE’, ‘noveng.kinsta.cloud’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’]);

Since this happens with every migration plugin I’ve tried, I believe this is a server-level Nginx routing issue rather than a plugin compatibility problem. Has anyone successfully run migration plugins on individual subsites in a Kinsta Multisite subdomain setup? Any guidance on what Nginx rules or wp-config settings might be needed would be greatly appreciated.

Thanks!

Hello there :waving_hand:

The multisites can be tricky. I checked everything you listed above and it does seem set correctly, except the ‘siteurl’ and ‘home’ in wp_2_options table.

They are set to ‘http’ and it should be ‘https’. I would advise updating that. I’m not sure if that would resolve the issue, but that’s what I would try,

Kind regards