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