title: WordPress multisite Network Admin redirect loop
body: <p>I have redirected my non-www to www in my WordPress multisite using this in <code>.htaccess</code>:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteCond %{HTTP_HOST} ^[^.]+\.[a-z]{2,3}$ [NC]
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]
  
  # add a trailing slash to /wp-admin
  RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]
  RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  RewriteRule . index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>It works almost perfectly. There's just one issue - Network Admin goes to <a href="http://domain.com/wp-admin/network/" rel="nofollow">http://domain.com/wp-admin/network/</a> (no www) and causes a redirect loop.</p>
  
  <p>Any ideas?</p>