Title: network admin getting redirect loop
Last modified: August 19, 2016

---

# network admin getting redirect loop

 *  Resolved [hemant.sathe](https://wordpress.org/support/users/hemantsathe/)
 * (@hemantsathe)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/)
 * Hi,
 * I have multiple blogs for past more than a year using WPMU. Recently when I upgraded
   to 3.1, I noticed that the super admin menu is replaced by network admin and 
   when I tried to access the network admin, I am getting redirect loop basically
   for all URLs starting with /wp-admin/network. I have tried all options like disabling
   all plugins, removing all plugins, reinstalling fresh copy of 3.1 and changing
   the config file, reinstalling plugins, installing plugins to block canonical 
   redirects. But so far nothing has worked. The blogs are working OK (have not 
   done extensive testing) but things look good. Only in case of wp-admin/network/*
   I am getting the redirect loop. Can some one help? Thanks in advance.
 * Hemant

Viewing 15 replies - 16 through 30 (of 30 total)

[←](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/?output_format=md)
[1](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/?output_format=md)
2

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011855)
 * I think it’s … well, I’m not sure.
 * This keeps coming up, but not for everyone, and my best GUESS is that it’s a 
   combination of server setup, DNS, and WordPress.
 * See, my DNS is set that [http://www.domain.com](http://www.domain.com) and domain.
   com are separate entries, but both point to the same name server. Ditto the vhosts
   in my httpd.conf file. In WP, I installed everything to be domain.com (cause 
   I subscribe to the ‘shorter is better’ school of thought). And I know that once
   I moved to 3.0, I no longer needed my .htaccess tweak of
 *     ```
       RewriteCond %{HTTP_HOST} ^www\.domain\.tld$ [NC]
       RewriteRule ^(.*)$ http://domain.tld/$1 [R=301,L]
       ```
   
 * So I presume that WordPress parses this better, not just because of MultiSite(
   I get the same results on a non-MultiSite WP install), but because of a change
   in the 3.0 base.
 * My gut feeling is that when all those pieces AREN’T aligned correctly, and somewhere
   in the mix, be it DNS or vhost, that your server things that one or the other
   should take _ precedence _, WP has a bit of a hissy fit.
 *  [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011856)
 * Sadly that doesn’t answer it for me I don’t think, as it makes zero difference
   whether the www is present or not in the wp-config. I still have the exact same
   redirect loop experience.
 * I’ll check the server setup tomorrow though to ensure everything is consistent.
 *  [Xeronimo](https://wordpress.org/support/users/xeronimo/)
 * (@xeronimo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011859)
 * Same problem here … I get the ‘redirect loop’ error and none of the above suggestions
   have helped so far …
 *  [Xeronimo](https://wordpress.org/support/users/xeronimo/)
 * (@xeronimo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011860)
 * Ok, it seems I have found the solution! At least for my problem.
 * In the table wp_blogs the domains for my networked WP sites were ‘mydomain.com’
   in each case. I changed all of them into ‘www.mydomain.com’ and now the network
   part of the admin interface is accessible again!
 * And the WP sites seem to still work normally too 🙂
 * Does anyone know though why this suddenly became a problem after the upgrade 
   from 3.1.0 > 3.1.1 ?
 *  [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011861)
 * No joy for me, adding the www in that table just gives me a redirect loop for
   the entire site rather than just the network admin section.
 *  [Xeronimo](https://wordpress.org/support/users/xeronimo/)
 * (@xeronimo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011862)
 * rob:
 * Hmm … what value do you have in your wp-config.php file then at this line:
 * define(‘DOMAIN_CURRENT_SITE’, ‘???’);
 * I had ‘www.mydomain.com’ there but only ‘mydomain.com’ in the wp_blogs table,
   maybe that way the problem in my case? Since everything worked again once I’ve
   added a ‘www.’ there.
 * Also, I’m not working with subdomains but with subfolders. Maybe that’s why the
   domain change didn’t mess my whole interface up like in your case? Are you using
   subdomains?
 *  [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011863)
 * it’s ‘ukintranet.eu.companyname.net’ since I’m running WP as an internal site
   rather than a website.
 * If I add www. here, then there is no difference. If I add it in the wp_blogs 
   table then it loops the whole site.
 * and yes, I am using subdomains, so that may be the key difference.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011864)
 * robpannell, in your case you don’t need the www, obviously 🙂
 * I’m using subdomains as well, but you’re using … nested subdomains (that is you
   get site2.ukintranet.eu.company.net, right?)
 * That said, this:
    `define('DOMAIN_CURRENT_SITE', 'ukintranet.eu.company.net' );`
 * and:
    `$base = '/subdir/';`
 * Are a recipe for things being bizarre. WordPress doesn’t like running a network
   out of a subfolder, and especially not subdomains!
 *  [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011865)
 * hmm, thanks. It looks like I’m gonna have to do a couple of fresh standalones&
   transfer everything across. ouch.
 *  [anthon](https://wordpress.org/support/users/anthon/)
 * (@anthon)
 * [15 years ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011872)
 * I’ve got this same issue. I can access the site (although comments won’t load),
   get to the login page. However, if I try to login, it just loops straight back
   to the login box again.
 * I’m running WordPress 3.1 Network on IIS7, SQL Server 2008 w/ sub-domains.
 * I have enabled network, and added the following to:
 * web.config:
 *     ```
       <rewrite>
       			  <rules>
       				  <rule name="WordPress Rule 1" stopProcessing="true">
       					  <match url="^index\.php$" ignoreCase="false" />
       					  <action type="None" />
       				  </rule>
       				  <rule name="WordPress Rule 2" stopProcessing="true">
       					  <match url="^files/(.+)" ignoreCase="false" />
       					  <action type="Rewrite" url="wp-includes/ms-files.php?file={R:0}" appendQueryString="false" />
       				  </rule>
       				  <rule name="WordPress Rule 3" stopProcessing="true">
       					  <match url="^" ignoreCase="false" />
       					  <conditions logicalGrouping="MatchAny">
       						  <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
       						  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
       					  </conditions>
       					  <action type="None" />
       				  </rule>
       				  <rule name="WordPress Rule 4" stopProcessing="true">
       					  <match url="." ignoreCase="false" />
       					  <action type="Rewrite" url="index.php" />
       				  </rule>
       			  </rules>
       		  </rewrite>
       ```
   
 * wp-config:
 *     ```
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', true );
       $base = '/';
       define( 'DOMAIN_CURRENT_SITE', 'svr-web' );
       define( 'PATH_CURRENT_SITE', '/' );
       define( 'SITE_ID_CURRENT_SITE', 1 );
       define( 'BLOG_ID_CURRENT_SITE', 1 );
       ```
   
 * Any ideas?
 *  [homeruntaz](https://wordpress.org/support/users/homeruntaz/)
 * (@homeruntaz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011884)
 * I’m having the same problem as robpannell – but only after I changed the site
   from non-www to www. The site is up, the admin works but the network admin goes
   into the infinite loop. If I remove the DOMAIN_CURRENT_SITE, then the network
   admin works but then none of the site links work(but the site is visible). I 
   have two databases I’m flipping between to figure this out -one with all the 
   links set to non-www and one with all www. I’m guessing there’s a mismatch somewhere
   between non-www and www but don’t get where when it only affects network admin?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 10 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011885)
 * homeruntaz – this post is both 2 months old AND flagged as resolved, so you’re
   better off making a new topic in these situations.
 * Go through your DB and look for any missmatches with your domain.
 *  [homeruntaz](https://wordpress.org/support/users/homeruntaz/)
 * (@homeruntaz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011886)
 * Found the solution!!!! I changed the url in the blogs table(wp_blogs if you didn’t
   modify it) -it’s the only row in the table and once I added the www to it- the
   site, admin and network admin works!
 *  [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011887)
 * Actually in the end, I commented out lines 18 & 19 of wp-admin/network/admin.
   php
 * That did the trick for me.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 9 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011888)
 * robpannell – I cannot, in good conscience, suggest ANYONE edit the core files.
   Ever.

Viewing 15 replies - 16 through 30 (of 30 total)

[←](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/?output_format=md)
[1](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/?output_format=md)
2

The topic ‘network admin getting redirect loop’ is closed to new replies.

## Tags

 * [iis](https://wordpress.org/support/topic-tag/iis/)
 * [network admin](https://wordpress.org/support/topic-tag/network-admin/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)
 * [wpmu](https://wordpress.org/support/topic-tag/wpmu/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 30 replies
 * 12 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/network-admin-getting-redirect-loop/page/2/#post-2011888)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
