$host = getenv ("HTTP_HOST"); // get the ip number of the user //string stristr ( string haystack, string needle) $wedding = stristr ($host, "aawedding"); if ($wedding) { header ("Location: http://home.comcast.net/~alysonsaykin/AA.html"); exit; } ?>