yani normalde kullanıcıya echo ile sonuç gösterebildiğin her sayfada şu işe yarar, bu da mı çalışmıyor?

$URL = "http://www.google.com";
echo "<script type='text/javascript'>document.location.href='{$URL}';</script>";