Site Redirecting to wp-signup.php

by Alex Schmaltz   Last Updated August 24, 2017 11:08 AM

I migrated content from our production server to our dev server in an attempt to sync all environments. I used the All-In-One WP Migration plugin.

Now, when I access dev.domain.com I am forwarded to http://dev.domain.com/wp-signup.php?new=dev.domain.com

It sounds like one of the database values must be incorrect and WordPress is forwarding me here because of it. If I disable Multisite, everything seems to function properly.

Here is my .htaccess:

<FilesMatch "(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
<FilesMatch "^(wp-config\.php|readme\.html|license\.txt)">
 Order allow,deny
  Deny from all
  Satisfy All
 </FilesMatch>

and my wp-config:

/** Multisite / Wordpress Network **/
 define('MULTISITE', true);
 define('SUBDOMAIN_INSTALL', true);
 define('DOMAIN_CURRENT_SITE', 'dev.domain.com');
 define('PATH_CURRENT_SITE', '/');
 define('SITE_ID_CURRENT_SITE', 1);
 /** fix for Multisite 'SubDomains' - Not Working for me :( */
 define('ADMIN_COOKIE_PATH', '/');
 define('COOKIE_DOMAIN', '');
 define('COOKIEPATH', '');
 define('SITECOOKIEPATH', '');


Answers 1


You'll want to add these to your wp-config.php file:

define( 'NOBLOGREDIRECT', '' );    
define( 'WP_HOME', 'http://dev.domain.com' );
define( 'WP_SITEURL', 'http://dev.domain.com' );

So in its entirety, you'll have:

    $base = '/';
    /** Multisite / Wordpress Network **/
    define( 'WP_HOME', 'http://dev.domain.com' );
    define( 'WP_SITEURL', 'http://dev.domain.com' );
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'dev.domain.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    /** fix for Multisite 'SubDomains' - Not Working for me :( */
    define( 'ADMIN_COOKIE_PATH', '/' );
    define( 'COOKIE_DOMAIN', '' );
    define( 'COOKIEPATH', '' );
    define( 'SITECOOKIEPATH', '' );
    define( 'NOBLOGREDIRECT', 'http://dev.domain.com' );

And be sure to check your dbprefix_options table in the database for all domain references.

Courtney Ivey
Courtney Ivey
October 15, 2014 18:48 PM

Related Questions


Wordpress path multisite redirect

Updated July 08, 2016 08:01 AM

Localhost Multisite Redirect error

Updated December 28, 2016 08:03 AM

Multisite Sub domains not working

Updated September 23, 2017 21:08 PM