When I use multi-site Wordpress on a droplet with two domains, adding a site redirects to the other domain's wp-signup.php.

August 6, 2014 3.8k views

As in the title, I have two domains on my droplet. I can create sub-sites on the first with no problems, but when I create a sub-site and then try to go to it, I'm redirected here instead:

Additionally the signup page isn't what should load once I've created the site via Network Admin--it should go directly to the new site instead. Creating sub-sites on site1 works fine using this approach; I add a site via Network Admin, then can immediately go to it with no problems.

Any ideas on this? The .htaccess file for each site was copied directly from the Wordpress Network Admin settings, as was the chunk of the wp-config.php file for each.

Here is my breakdown of the DNS info:


A: @ / IP
A: /IP
CNAME: www /@


A: @ / IP
A: / IP
CNAME: www / @
CNAME: * / @

Any thoughts on what could cause this?

1 Answer

It sounds like this might be an issue with your Apache VirtualHosts. Could you post them here? seems to be the default server in your Apache configuration. If Apache doesn't recognize the the ServerAlias it will redirect to the default server. When the WordPress installation at recieves a request for it doesn't exist. This then triggers the redirect to the signup page.

Make sure your VirtualHosts contain:

ServerAlias *

And of course change * to * for the other VirtualHost.

In general, if you want to disable the redirection to the signup page, you can set NOBLOGREDIRECT in your wp-config.php files:

define( 'NOBLOGREDIRECT', '' );
Have another answer? Share your knowledge.