在你网站的首页顶部加上以下代码(PHP代码)
在Location: 后面填上一个任意PR值的网址,如 Google.com 就是 10, msn.com 就是 9 了,只要选对网址,哪N(7<N<30)天后,你的网站就会显示相应的PR值了
<?php
if (preg_match("#(google)#si", $_SERVER['HTTP_USER_AGENT']))
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.google.com/");
exit();
}
?>
在Location: 后面填上一个任意PR值的网址,如 Google.com 就是 10, msn.com 就是 9 了,只要选对网址,哪N(7<N<30)天后,你的网站就会显示相应的PR值了
<?php
if (preg_match("#(google)#si", $_SERVER['HTTP_USER_AGENT']))
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.google.com/");
exit();
}
?>
博客介绍在网站首页顶部添加PHP代码,在Location后面填任意PR值的网址,如Google.com、msn.com等,选对网址后,N(7<N<30)天后网站会显示相应PR值,并给出了具体的PHP代码示例。
1887

被折叠的 条评论
为什么被折叠?



