<?
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match("/[COLOR=Red]domainnamehere[/COLOR]/",$referrer)) {
header('Location: http://www.yourwebsite.com/special-page');
} else {
header('Location: http://www.yourwebsite.com/regular-page');
};
?>