http://site.ruhttp://mysite.ruheader('Location: http://site.ru');header('Location: http://site.ru?redirect=1');if( isset($_GET["redirect"]) )$_SERVER['HTTP_REFERER'] сможешь узнать источник перехода на сайт.Location: *$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$a = curl_exec($ch);
if(preg_match('#Location: (.*)#', $a, $r))
$l = trim($r[1]);zzz.rezo.net/HowTo-Expand-Short-URLs.html