I have a WordPress Multisite installation: https://www.childbirthlibrary.org One sub-site connected to it is https://www.trainingdoulas.com/ (There are several other sites, all with subdomains attached to them, those are behaving just fine.)
I was able to locate a stack enchange article that explains what's going on here: Wordpress Multisite redirecting to wp-signup.php
His solution was to disable the auto_globals_jit in PHP.ini, because it was preventing the $[_SERVER] superglobal from being loaded.
I have updated the PHP FPN settings on my host with
php_value["auto_global_jit"] = off to reflect this, and have verified via PHPINFO() that the 'auto_globals_jit' was disabled, but the issue persists.
The solution also mentioned a possible caching issue, but I'm not aware of any caching on the site at present that could be affecting this. It's possible though.
I've tried a number of modifications to the wp-config.php file including:
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); define( 'NOBLOGREDIRECT', '' ); # I also swapped out the empty space, with $_SERVER['HTTP_HOST'], and hard coding the primary domain 'www.childbirthlibrary.org'.
That was suggested here: Site Redirecting to wp-signup.php
I've followed the suggestions in this stack exchange post: What is the correct way to map multiple domains in a WordPress 4.1 multisite install?
I went ahead and changed the primary domain to the NON-WWW form of 'trainingdoulas.com' for the sub-site, but the issue even still persists when typing in just "trainingdoulas.com" directly into the browser. It continues to redirect to the new user sign up page.
Finally, I've attempted to setup a URL redirect in the .htaccess file for all variations of both domains: 'childbirthlibrary.org' and 'trainingdoulas.com'. That also failed, possibly because of my inexperience in .htaccess file writing.
I've been ignoring this bug for a while, but it really should be fixed. :) I will know that the bug is fixed when I can go to any of the following in my in my address bar:
be properly redirected:
The same should happen for the following:
should go to:
These domain look-ups should NOT redirect me to: https://www.childbirthlibrary.org/wp-signup.php?new=non-www_domain