Turn off redirect to canonical domain (or host website on any hostname)

In addition to modification of wp-config you might need to check .htaccess too, if there are any pointers to subfolder.

After that, you might need to replace the values in DB tables wp_site and wp_blogs.