title: How many 301 Redirects do you need when moving your site?
body: <p>So, I submitted an answer to <a href="https://stackoverflow.com/questions/9841779/extract-urls-from-a-website/9841848#9841848">this SO question about redirecting your site</a>, however I began to think about the intricacies of it, especially with Rody van Sambeek's answer about finding all of your site's URL's and submitting a redirect for each one. I have never actually needed a 301, so I only know it academically. And I could not seem to find anything via numerous google searches. So, I was hoping that somebody who has a little more knowledge on redirects could answer this question:</p>
  
  <p>How many 301 redirects are really needed when your base domain moves? Do you need just one for the base domain, which will be picked up for all of your links since it is the base? Or, do you, in fact, need to submit a 301 for each and every page?</p>
  
  <p>Here is a very basic example:</p>
  
  <p><strong>Original setup:</strong></p>
  
  <ul>
  <li>www.mydomain.com</li>
  <li>www.mydomain.com/About</li>
  </ul>
  
  <p><strong>New setup:</strong></p>
  
  <ul>
  <li>www.newdomain.com</li>
  <li>www.newdomain.com/About</li>
  </ul>
  
  <p>So, do I submit 2 301's:</p>
  
  <ul>
  <li>www.mydomain.com -> www.newdomain.com </li>
  <li>www.mydomain.com/About -> www.newdomain.com/About</li>
  </ul>
  
  <p><strong>OR</strong></p>
  
  <p>do I need just one 301:</p>
  
  <ul>
  <li>www.mydomain.com -> www.newdomain.com </li>
  </ul>