Forum Moderators: phranque

Message Too Old, No Replies

Will google pass pagerank from this link?

         

macruddace

6:07 pm on Feb 18, 2005 (gmt 0)

10+ Year Member



Hi,

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]

Marino

10:10 am on Feb 22, 2005 (gmt 0)

10+ Year Member



Hello,

AFAIK, Google will never poke his nose into your PHP code. I'm using many header commands, and Google has never choked on any.

So no worry.

macruddace

12:32 pm on Feb 22, 2005 (gmt 0)

10+ Year Member



So do you think that google will pass pagerank to my homepage regardless of what page I use as my target?

See I dont understand If the link points to a php script that does a redirect what page does google pass pagerank to? or will it just pass pr to my homepage?

Marino

1:40 pm on Feb 22, 2005 (gmt 0)

10+ Year Member



I guess it should be the affiliate site to get the pagerank.

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...]