<?php $url = parse_url($_SERVER['HTTP_REFERER']); $domain = $url['host']; if($domain == '89.com') { header("location:http://www.popuphell.com"); } ?>