<?php
    //Checks if there is a cookie
    if(isset($_COOKIE["cookiename"])) //if cookie is set
    {
          header("Location: redirectDOTcom"); //redirect to
    }
    else
    {
       setcookie( "cookiename", "something", time()+3600*24, "", "domainname" ); //set cookie name, variable and expiring time    
       header("Location: redirectuniquehit "); //redirect the unique view
    }
     
    ?>