Page is a not externally linkable
Patrick_Taylor - 2:55 pm on Sep 11, 2004 (gmt 0)
<?php The above returns a 302 also, from an url like ht*p://www.mysite.com/link.php?url=somepage. It is commonly (and innocently) used in php redirect scripts which sit in their own (normally unseen) file. I use it myself to help track outgoing clicks. Surely link.php isn't credited with the content of all the pages it links to?
the effect of a 302 is to cause Googlebot to index the URL of the page containing the 302 with the content of the page the 302 redirects to.
$location = 'ht*p://somesite.com/';
header('Location: ' . $location);
?>