I would like to be able to redirect some visitors depending on a if statement...
Basically using the http referer, if anywhere in the url that is the referer a made word is found ...
$qurl = $_SERVER['HTTP_REFERER'];
if ($qurl == superword) {
echo "<SCRIPT LANGUAGE=\"javascript\">window.location.href =\"http://www.website.com\"</SCRIPT>";
}
I tried the above example but It will not function and no redirection from the js happens.