Referrer For A Redirect

razorzero

Newbie
Joined
Oct 31, 2008
Messages
6
Reaction score
0
Ok, say someone clicks a link which is formatted like this:

Code:
www(dot)site(dot)com/go/afflink

Now, this link is redirected with .htaccess to an affiliate link.

Would the referrer be
Code:
www(dot)site(dot)com
or what?

Any help is appreciated.
 
You could do a simple test to find out what the referrer is. Create a file called ref.php and add this code to it:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>Referrer:</p>
<br />
<?php
echo $_SERVER['HTTP_REFERER'];
?>
</body>
</html>

Make your affiliate link redirect to ref.php (set it up through .htaccess like you planned), and you will see what the referrer is.
 
or try to click the link and check at your affiliate site. they usually has a tracker and you can see whether your link has referrer or not. at least it works for me.
 
Back
Top