SEO, Link Building Broker, Office Automation Consultant and Applications Developer.
Header image

WordPress network admin redirect issue solved

Posted by Amit Cohen in Wordpress

It happen again, I can’t believe it!
Now upgrading to 3.2 and the redirect issue is back.

To fix the Network Admin redirect problem, I have override the file admin.php in the path /public_html/wp-admin/network
Using this code:

<?php
/**
 * WordPress Network Administration Bootstrap
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

define( 'WP_NETWORK_ADMIN', TRUE );

/** Load WordPress Administration Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );

if ( ! is_multisite() )
	wp_die( __( 'Multisite support is not enabled.' ) );

if ( ! is_main_site() ) {
wp_redirect( network_admin_url() );
exit;
}
?>

It works!

Find the full thread here:

You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.

no