I am try to set up my external links to not hurt my SEO ratings. I have came to believe that this can be done with PHP coding. However, it is not working properly. There for I assume I have an error in my coding can any one help.

The external link URL is stored in the "link" filed. I am passing the "link_typeID" from the previous page that would normally go straight to the website. However I am directing it to redirect.php which I want to excute the redirect. I am getting an error message on the echo line.

Here is what I have on the redirect.php page.
<?php
if (isset($GET['`linksID']))
{
header("Location: $
GET[link]");
exit;
}
else echo ". $_GET['link'].":
?>

You see in the brower (link url is correct):
http://truckvendors.com/links/redirect.php?linksID=http://creativedazedesign.com

Can anyone help me with this?

    <?php
    if (isset($_GET['link']) && $_GET['link'])
    {
    	header('Location: ' . $_GET['link']);
    	exit;
    } 
    else
    {
    	echo 'no link supplied';
    }
    ?>
    
      Write a Reply...