I wanted to confirm something.

Let's say that http://www.foo.com/index.php checks for a "Have you been here before cookie" and then redirects you to http://www.foo.com/foo/index.html. Is this correct, and if so, what does it do? Does it just simulate a meta tag, or do a server side switch?

Code:
<?php
  header("Location: /foo/index.html");
?>