title: Wordpress Multisite Main Network Admin Login Loop
body: <p>I have a wordpress multisite install, which once upon a time worked absolutely fine. Recently I haven't been able to access the main network admin dashboard. I am presented with the wordpress login screen again and when I put the details in, it redirects back to the log in screen. </p>
  
  <p>I thought it was a problem with either the HTACCESS or the WP CONFIG. I cant see what would have changed. </p>
  
  <p>I have tried the clearing cookies, running in incognito mode, disabling security plugins that write to the htaccess, and trying suggested define() scripts in the config file. </p>
  
  <p><strong>Htaccess:</strong>  </p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  
  # add a trailing slash to /wp-admin
  RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]
  RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
  RewriteRule ^(.*\.php)$ $1 [L]
  RewriteRule . index.php [L]
  </code></pre>
  
  <p>wp-config snippet</p>
  
  <pre><code>define('WP_DEBUG', false);
  
  /* Multisite */
  define('MULTISITE', true);
  define('SUBDOMAIN_INSTALL', true);
  define('DOMAIN_CURRENT_SITE', 'dwml.co.uk');
  define('PATH_CURRENT_SITE', '/');
  define('SITE_ID_CURRENT_SITE', 1);
  define('BLOG_ID_CURRENT_SITE', 1);
  
  define('COOKIE_DOMAIN', $_SERVER[ 'HTTP_HOST' ] );
  </code></pre>
  
  <p>Any help would be appreciated.</p>