Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 5th Apr 2012, 02:31 AM   #1
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

I asked this before on the SEO forum and no-one understood what the heck I was talking about, so let's try here

I have a Clickbank product and obviously the sales page gets a lot of backlinks from affiliates. Trouble is, each of these backlinks is slightly different, because they all have different referring links like

Code:
http://affiliate.vendor.hop.clickbank.net
and also when that is redirected (is the hop a 301? Not sure) it becomes:

Code:
mysite.com/mysalespage/?hop=affiliatename
Would it make sense to put a redirect on my sales page like:

Code:
if (isset($_GET['hop'])) [do 301 redirect back to same page but minus the ?hop= url parameter]
The affiliates cookie would be preserved, and I would concentrate all the links to one canonical URL, which is particularly important if a ton of affiliates are competing with my product keyword, and also to help rank some of the main keywords associated with my product.

Make sense? Does that work?! Or am I missing something here?

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 5th Apr 2012, 03:45 AM   #2
Warrior Member
 
Join Date: 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Not sure if I understood your question, but what about setting it up to non-existent location and then setting up a custom 404 page - that will get you all the link juice to where to you need.

Wordpress plugins ('link juice') are created using the same technique.
sharpmedia is offline  
Unread 5th Apr 2012, 06:16 AM   #3
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Hmm, yeah, not sure we're on the same "page" as it were. I don't want to 404 them - did you mean put the canonical link on the 404 page or something? I want to get all non-canonical ("duplicate page", if you like) links like:

Code:
mysite.com/mysalespage/?hop=affiliate1
mysite.com/mysalespage/?hop=affiliate2
mysite.com/mysalespage/?hop=affiliate3
and 301 them all to:

Code:
mysite.com/mysalespage/
so that just one page gets the benefit of all the links. Does that make sense?

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 5th Apr 2012, 07:14 AM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Probably you can just add <link rel="canonical" href="http://mysite.com/mysalespage/" /> to your page header
phpg is offline  
Unread 5th Apr 2012, 07:16 AM   #5
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by phpg View Post

Probably you can just add <link rel="canonical" href="http://mysite.com/mysalespage/" /> to your page header
Now that would really make things easier!

I just know other Clickbank vendors have complained about this issue of "non-canonical" links, but it seems there is a simple solution, I just wonder why they didn't implement it... In fact, I am sure may vendors DO do something like this because you don't see the ?hop=xxxx when you click through to their sales page.

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 5th Apr 2012, 07:24 AM   #6
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

rel=canonical is relatively new, not everyone's familiar with it or how it works, so they use good old 301 redirect. Theoretically in your situation rel=canonical is even more correct way than 301, in practice it's just easier.
phpg is offline  
Unread 5th Apr 2012, 07:35 AM   #7
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by phpg View Post

rel=canonical is relatively new, not everyone's familiar with it or how it works, so they use good old 301 redirect. Theoretically in your situation rel=canonical is even more correct way than 301, in practice it's just easier.
Hey thanks, I never really understood that rel=canonical could be applied to this precise problem.

I just looked in my page source code and see that All-in-One SEO is correctly showing the rel=canonical link for that page, whatever variant of the permalink I try! So I guess I got the benefit of all those links all along That must be why my rankings have improved so much lately

Thanks for the help, case closed.

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 5th Apr 2012, 11:41 AM   #8
Bob
 
Join Date: 2011
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

You could do a 301 redirect like proposed earlier. That is what Amazon does to all of it's affiliate links, which is part of the reason that they have so much link juice.

Rel = "canonical" isn't 100% reliable for redirecting juice.
Jack Clark is offline  
Unread 5th Apr 2012, 12:05 PM   #9
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by Jack Clark View Post

You could do a 301 redirect like proposed earlier. That is what Amazon does to all of it's affiliate links, which is part of the reason that they have so much link juice.

Rel = "canonical" isn't 100% reliable for redirecting juice.
Thanks for the tip - I often wondered about Amazon, I am sure they have very much capitalised on all those affiliate links. You've got me thinking again, maybe I will redirect after all - it's not a big deal programming-wise, just a case of whether it makes sense.

Probably ideally I would do it in .htaccess, but I hate those regular expressions, grrr... Sure I will figure something out though. Otherwise will just do it in PHP.

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 5th Apr 2012, 01:49 PM   #10
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by markowe View Post


and also when that is redirected (is the hop a 301? Not sure) it becomes:
Yes, Clickbank does all hoplink redirections with 301 status codes.

The way I'd do it if I wanted to get rid of the ?hop=xxxx in URLs would be to put the following in a .htaccess file, provided you're using Apache:


Code:
<IfModule mod_rewrite.c>

# Enable URL rewriting
RewriteEngine On

# Get rid of "?hop="
RewriteCond %{QUERY_STRING} ^hop=
RewriteRule ^(.*)$ /$1? [R=301,L]

</IfModule>
This makes sure that ?hop=xxxx is removed from the final url and visitors are redirected to the main URL with a 301 status code.

:)
mojojuju is offline  
Unread 5th Apr 2012, 01:59 PM   #11
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by mojojuju View Post

Yes, Clickbank does all hoplink redirections with 301 status codes.

The way I'd do it if I wanted to get rid of the ?hop=xxxx in URLs would be to put the following in a .htaccess file, provided you're using Apache:


Code:
<IfModule mod_rewrite.c>

# Enable URL rewriting
RewriteEngine On

# Get rid of "?hop="
RewriteCond %{QUERY_STRING} ^hop=
RewriteRule ^(.*)$ /$1? [R=301,L]

</IfModule>
This makes sure that ?hop=xxxx is removed from the final url and visitors are redirected to the main URL with a 301 status code.
But using .htaccess you would not be able to track the affiliate link with your software. The OP wants to receive the hop value and then do a redirect with the software.

Earnie Boyd is offline  
Unread 5th Apr 2012, 02:19 PM   #12
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by Earnie Boyd View Post

But using .htaccess you would not be able to track the affiliate link with your software. The OP wants to receive the hop value and then do a redirect with the software.
Well I don't see where he said he wants to track affiliate IDs, but if he wants to do that, he can easily do so with PHP.

<?php

# See if the hop variable exists.
# If it does, do all of the following stuff.
# If it doesn't, then do nothing

if (strlen($_GET[hop]) > 0) {


/*
Put whatever you want here to track the affiliate id,
store it in a database or whatever...
*/


# Send the visitor to the sales page without "hop" in the URL

Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://mysite.com/mysalespage/" );

}

?>

:)
mojojuju is offline  
Unread 6th Apr 2012, 12:46 PM   #13
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Hi, no, it's true, I didn't say I wanted to track the affiliate IDs, just to make sure their cookie stayed intact and they got their commissions, which I see no problem with, as the cookie is dropped during the hop, nothing to do with my site.

But now you mention it, it's not a bad idea to actually log the affiliate IDs 'PHP-side', which I can't if I do it in .htaccess. I guess it's just .htaccess is the only sure way to enforce the redirect, Header() can always fall foul of some browser setting or other?

Anyway, thanks for all the help, priceless stuff, especially that .htaccess code as I just get brain-melt when dealing with .htaccess and regexp...!

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 6th Apr 2012, 01:15 PM   #14
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Actually header() has nothing to do with browser settings, it's similar to .htaccess redirection, the difference is that with .htaccess you don't call php and save some (very little) resources that way.
phpg is offline  
Unread 6th Apr 2012, 01:29 PM   #15
The Wordbay Guy
War Room Member
 
markowe's Avatar
 
Join Date: 2010
Posts: 1,926
Thanks: 266
Thanked 437 Times in 265 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

Originally Posted by phpg View Post

Actually header() has nothing to do with browser settings, it's similar to .htaccess redirection, the difference is that with .htaccess you don't call php and save some (very little) resources that way.
Really? I am not so clued up on http headers, but aren't they basically information sent to the browser, which the browser can act on, or maybe not if some plugin or extension prevents it for some reason? Same as meta refresh in that respect?

Who says you can't earn money as an eBay affiliate any more? My stats say otherwise
markowe is offline  
Unread 6th Apr 2012, 01:46 PM   #16
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: Redirect Clickbank referrals (?hop=xxxx) back to canonical page to maximise link juice
Share on: 
fb share twitter share gplus share more share

In theory browser can ignore http header (though they usually don't), but the case is php header() redirect and .htaccess redirect do the same thing - insert Location directive in the http header. You can use .htaccess rewrite without redirect, but that's completely different thing and not what you need.
phpg is offline  
Closed Thread


Bookmarks

Tags
clickbank, hopxxxx, redirect, referrals


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:54 PM.