当前位置:Gxlcms > PHP教程 > 令你的网站获得任意GooglePR值的方法

令你的网站获得任意GooglePR值的方法

时间:2021-07-01 10:21:17 帮助过:6人阅读

在你网站的首页顶部加上以下代码(php代码)
在Location: 后面填上一个任意PR值的网址,如 Google.com 就是 10, msn.com 就是 9 了,只要选对网址,哪N(7if (preg_match("#(google)#si", $_SERVER['HTTP_USER_AGENT']))
{
header("HTTP/1.1 301 Moved Permanently");
header("Location:http://www.google.com/");
exit();
}
?>

人气教程排行