title: redirect all pages except root
body: <p>I'm trying to separate out a WordPress site that has 4 specific blog sections built with custom post types to their own individual sites.</p>
  
  <p>I have urls that look like:</p>
  
  <p>example.com/site1/postname
  example.com/site2/postname 
  etc </p>
  
  <p>What I need to do is redirect all the posts under each site out to the new site while leaving the root page where it is.</p>
  
  <p>So example.com/site1/postname becomes example2.com/postname </p>
  
  <p>but example.com/site1/ needs to stay as example.com/site1/ </p>
  
  <p>And the same for the other 3 sites. Hope that makes sense.</p>
  
  <p>I have this and it works great at redirecting the posts to the new site but it also redirects the root base as well and can't work out what to change to fix that.</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^site1/(.*)$ http://www.example2.com/$1 [L,R=301]
  </code></pre>