Maximizing SEO Benefit from Clickbank Links
Just to be clear - I understand that in no way does this negatively affect the validity of affiliates hop/cookies. ie affiliates still get credited with 100% of their referrals
I understand that Clickbank uses 302 redirects for affiliate links to the product page.
So when there is a link to http://productdomain.com/?hop=cbusername, any SEO linkjuice is attributed to http://productdomain.com/?hop=cbusername rather than http://productdomain.com/.
From my research it seems that I can implement a 301 redirect on http://productdomain.com/ to tell Google to give full SEO credit to http://productdomain.com/ rather than http://productdomain.com/?hop=cbusername.
Can I do this by simply adding some code to the htaccess file for the domain?
Something like:
<?
if(isset($_GET["hop"])){
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://productdomain.com/");
header("Expires: 0");
exit;
}
else{
readfile("http://productdomain.com/");
exit;
}
?>
or do I have to include that code in an index.php file? To be honest - Im not sure how I would go about creating an index.php file.
Any thoughts or advice would be massively appreciated.
Thanks WF