Home > php教程 > php手册 > 信吗?令你的网站获得任意google pr值的方法

信吗?令你的网站获得任意google pr值的方法

WBOY
Release: 2016-06-21 09:01:35
Original
1168 people have browsed it

在你网站的首页顶部加上以下代码(PHP代码)

在Location: 后面填上一个任意PR值的网址,如 Google.com 就是 10, msn.com 就是 9 了,只要选对网址,哪N(7

if (preg_match("#(google)#si", $_SERVER[HTTP_USER_AGENT]))
{
 header("HTTP/1.1 301 Moved Permanently");
 header("Location:http://www.google.com/");
 exit();
}
?>



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template