Posts Tagged ‘fake PR’

Quick way to know if your domain rediret works or not.

May 24, 2009

Usually webmasters use 301 and 302 to redirect a site from an old domain to a new domain.

If you use 302 make you set the second=0 then 302 shall be same as 302 for 301 redirect.

After couple days google search engine updates data centers. You can check google [ info: ] and [ cache: ] to see whether your domain has been really redirected or not.

Here I like to add some how redirection scripts work information:

How the header 301 quick redirect work

PHP script
<?
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http : // next-site /”);
?>

ASP script
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http : // next-site /”
%>

However some webmasters are using it for gaining fake PR ( Google PageRank )

By knowing how some black hat SEO webmasters use header 301 redirect you can avoid to buy fake PR domain name.

Example 301 scripts:

PHP script
<?
if (strstr($_SERVER[‘HTTP_USER_AGENT’], “Googlebot”)) {
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http://G/&#8221;);
exit;
}
else {
};
?>

ASP script
<%
if instr(Request.ServerVariables(“HTTP_USER_AGENT”),”googlebot”)>0 then
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http:// G /”
else
end if
%>

302 – redirection – example

redirection refresh count by second
content=seconds

html meta
Description:
<meta http-equiv=”refresh” content=”0; url=http://——.com”>

Example Code:
<html>
<head>
<meta http-equiv=”refresh” content=”10; url=http://——.com”>
</head>
<body>
</body>
</html>
————————————————————
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title></title>
<meta name=”title” content=”” />
<meta name=”description” content=”” />
<meta name=”keywords” content=”” />
<meta name=”publisher” content=”” />
<meta name=”copyright” content=”” />
<meta name=”rating” content=”General” />
<meta http-equiv=”reply-to” content=”” />
<link rel=”stylesheet” type=”text/css” href=”” />
<meta http-equiv=”refresh” content=”60;url=” />
</head>
<body>

302 redirect tips
When “refresh” content=0 second may have similar to 301 redirect for bots.
You may use <meta http-equiv=”refresh” content=”0;url=http : // a new URL” />

Regards,

Free Short URL redirect

Google PageRank checker tool

Advertisements