I am using a 302 redirect to one of my page as I don't want the page to be indexed by google. I am using the following code to redirect : $url = "http://www.mysite.com/test_page.php" ; header('location:' . $url .''); PHP: Is the code above considered to be a 302 redirect as I just came to know that the page I am redirecting to i.e test_page.php is indexed by google. If it is not, can anyone give me an example of a 302 redirect ? Thanks
Is there anyway I can prevent this from spidering? and If I do so; will there be any penalty by google or something similar? Thanks,
My case is a little different. The variable $url actually gets value from the database and lets say there are 100 urls or 1000, its hard to disallow all of them in robots.txt