diff --git a/wp-signup.php b/wp-signup.php index 3093f4cfad..ad6fffbe67 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -9,7 +9,7 @@ require( './wp-blog-header.php' ); require_once( ABSPATH . WPINC . '/registration.php' ); if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) { - wp_redirect( "http://{$current_site->domain}{$current_site->path}" ); + wp_redirect( network_home_url() ); die(); } @@ -28,10 +28,13 @@ if ( !is_multisite() ) { } if ( !is_main_site() ) { - wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" ); + wp_redirect( network_home_url( 'wp-signup.php' ) ); die(); } +// Fix for page title +$wp_query->is_404 = false; + function wpmu_signup_stylesheet() { ?>