title: 301 Redirects in PHP: Do I need to explicitly tell it that it's a 301?
body: <p>This one should be easy...</p>
  
  <p>Do I need to explicitly tell PHP that I want to do a 301 redirect? Like this...</p>
  
  <pre><code>&lt;?php
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: http://www.example.com/");
  ?&gt;
  </code></pre>
  
  <p>Usually, I leave off the first statement and just do...</p>
  
  <pre><code>&lt;?php
  header("Location: http://www.example.com/");
  ?&gt;
  </code></pre>
  
  <p>Would that second example actually be a 302 redirect?</p>