I am creating a site for clickbank and I want to redirect it so that the affiliate IDs don't show. For example, if an affiliate were to come to my site using his/her affiliate ID, it would redirect from http://www.mysite.com/?hop=AFFILIATE_ID to http://www.mysite.com/ I read that it can be done via php or htaccess... but how? Also, the sale must be credited towards the affiliate and any tids they used tracked. Is it possible? I want to do this so that: 1. I protect my affiliates 2. I increase their conversions and while allowing them to track it. Thanks!
redirect. As soon as the affiliate enters your site, redirect it to http://www.yoursiteurl.com. The tracking cookie being still activated the affiliate is still going to get commission from the sale, however the hop= is gone.
More specifically, on your index page make a condition to check if thers the "hop" QueryString Available in the url (http://www.mysite.com/?hop=AFFILIATE_ID). - If thers a hop - redirect to the site url: http://www.mysite.com/ - If thers NO hop - Do Nothing. Its important that you make that condition or you will end up redirecting to the same page infinitely... You can also do the check on your main page and then redirect to a secondary page but that wouldnt be neath... Anyways good luck!
Do you know where I can find the code to setup a php redirect that has the condition that the link must have ?hop= at the end??? PHP ain't my forte...
Place this at the top of your file - <?php if (isset($_GET['hop']) && !empty($_GET['hop'])) { header( 'Location: http://www.yoursite.com/' ) ; } ?> PHP:
Actually i wouldnt use that code, the && !empty($_GET['hop']) should be removed like my previous post...... so that whenever thers the hop querystring its removed leaving a clean url regardingless of having an affiliate id or not