title: 301 redirect using htaccess for blog pages and all other pages
body: <p>I am trying to redirect an old website to a new website. I see the old site as two parts. The blog articles and everything else. I would like the blog articles to be redirected to their new locations on the website, while keeping the same URL (more or less). I would like everything else to redirect to the new site's home page.</p>
  
  <p>Requirements:</p>
  
  <ol>
  <li>All blog posts should redirect to their same URL (without the <code>/blog</code> part) but on the new domain</li>
  <li>All non-blog pages should redirect to a single new page </li>
  </ol>
  
  <p>Example:</p>
  
  <ul>
  <li><p><code>oldsite.com/</code> --> <code>www.newsite.com</code></p></li>
  <li><p><code>www.oldsite.com/register</code> --> <code>www.newsite.com</code></p></li>
  <li><p><code>www.oldsite.com/pictures/cats</code> --> <code>www.newsite.com</code></p></li>
  <li><p><code>www.oldsite.com/blog</code> --> <code>blog.newsite.com</code></p></li>
  <li><p><code>www.oldsite.com/blog/cool-cats</code> --> <code>blog.newsite.com/cool-cats</code></p></li>
  </ul>