Forum Moderators: phranque
I am using this link for my own affiliate scheme.
http://www.mysite.com/affiliate.php?affiliate=XXXXX
affiliate.php is
<?php
$affiliate = trim($_GET['affiliate']);
$strtarget = trim($_GET['target']);
session_start();
$_SESSION['afid'] = $affiliate;
if ($strtarget == '') {
$strtarget = 'www.mysite.co.uk';
}
header('Location: http://www.example.com/go.htm?go=' . $strtarget . '&afid=' . $affiliate);
?>
My question is will google follow this link and pass pagerank to my home page or a page stated by the target eg:
http://www.yourwebsite.com/affiliate.php?affiliate=XXXXX&target=www.mysite.com/document.html
or will i need to use mod rewrite or is it just impossible to get backlinks/pagerank when using this link?
Many thanks in advance.
martin
[edited by: jdMorgan at 6:15 pm (utc) on Feb. 18, 2005]
[edit reason] Examplified link. [/edit]
May be you should ask this question on Google.Public.Support.General... Just type in "Googlebot not following redirects" in the search form.
You should consider adding a header("HTTP/1.1 301 Moved Permanently"); before your header('location[...]
However, a redirection as yours will never be regarded as equivalent to a direct link to [mysite.com...]