Background Top Border Background Middle Border

URL Redirect Checker

Url redirect checker
This tool shows you if a site is using a redirect, and if so, whether or not it’s search engine friendly.

Enter Url:   

if(@$_REQUEST['url'] && checkImage())
{
$url = trim($_REQUEST['url']);
$ch = curl_init($url);
curl_setopt($ch,CURLOPT_NOBODY,1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_HEADER,1);

$c = curl_exec($ch);
curl_close($ch);
if(!$c)
{
echo "
Sorry url not found!”;
}
else
{
preg_match(“#HTTP.*? (\d+) #i”,$c,$code);
$code = @$code[1];

preg_match(“#Location:(.*)$#mi”,$c,$location);
$location = trim(@$location[1]);

echo “
“;
if($code==301)
{
echo “This website has a 301 Redirect to:
$location

This redirect is Search Engine Friendly.”;
}
elseif($code==302)
{
echo “This website returned a 302 which is either not search engine friendly or a redirect.”;
}
else
{
echo “This website returned a $code which is search engine friendly.”;
}
}
}
?>

This entry was posted in Web Tools and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Background Bottom Border
Background Top Border Background Middle Border Background Bottom Border
None :P None :P

Rendered template: single.php

104 SQL queries done. Page generation took 0.282 seconds.