header() ile bu isteginizi yapamiyacaginizi dusunuyorum .
Boyle olabilir :
<?php
function yonlendir($site,$basehref)
{
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL , $site);
curl_setopt($ch , CURLOPT_RETURNTRANSFER , true);
curl_setopt($ch , CURLOPT_FOLLOWLOCATION , true);
curl_setopt($ch , CURLOPT_REFERER , $site);
curl_setopt($ch , CURLOPT_USERAGENT , 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)');
$source = curl_exec($ch);
curl_close($ch);
$source = str_replace('<head>','<head><base href="'.$basehref.'" />',$source);
return $source;
}
echo yonlendir('http://r10.net/index.php','http://r10.net/');
?>