Im using a php script on my site so that a link to another page e.g http://something.dark-skys.com is set in the script so that when http://go.dark-skys.com?id=xxx is entered it will redirect the user to the page http://something.dark-skys.com
The question is will google still be able to find and index the pages???
Incase ive confused you as im kinda bad at describing things the code im using is...
<?php
$urls[home] = 'http://dark-skys.com';
$urls[awards] = 'http://awards.dark-skys.com';
$urls[chat] = 'http://ozone.dark-skys.com';
$urls[games] = 'http://games.dark-skys.com';
if(!isset($_GET['id']))
die('<head>
<title>Redirecting...</title>
<meta http-equiv="refresh" content="0;url=http://www.dark-skys.com">
</head>');
$id = $_GET['id'];
if(!isset($urls[$id]))
header('Location: http://error.dark-skys.com/404.htm');
else
header('Location: ' . $urls[$id]);
?>
Thanks
James
|