I’ve mentioned a few times in the past how important it is for an affiliate marketer to get him/herself at least aquainted with simple HTML. It’s very beneficial to learn more than just basic HTML, but there are definitely some very successful affiliate marketers out there who don’t know anything more than how to setup a basic landing page. If you know how to setup a basic landing page you should have no trouble going through my examples listed below on how to setup your own HTML redirect using the Meta Refresh Tag. I have included a PHP example as well.
Setting up your own redirect can be beneficial in many ways. For example, I recently did a post about promoting PeerFly offers on YouTube. One of the restrictions we have in place is that you must create a redirect on your own domain if you want to direct link. We require this so there aren’t a million PeerFly links littering YouTube. It also should help your campaign because people are much more likely to trust a link with your domain than some random PeerFly link.
Redirect Script Examples
I have included both HTML and PHP redirect example scripts at:
http://lukepeerfly.com/demos/redirect/
The .html and .php files are the actual examples and the .txt files are the code that the examples use. You’ll notice that they both redirect immediately. If you want to be creative you could setup the page to show some text telling the user that they will be redirected in 10 seconds and include a countdown or something like that.
Please take a look through the examples provided and PLEASE let me know if you have any questions. I have gotten hundreds of questions about iframing our offers since my post and I want to help you get things setup so that your campaign can be successful and you can start making money with PeerFly, today!




I agree its always a good thing to have some basic knowledge such as this. However, if your site is running on WordPress there is a sweet redirect script called “Quick Page/Post Redirect DEV”. Its a free plugin and works great when you need to change something on the fly.
Thanks for the suggestion! If anyone wants to check out this plugin you can find it at Quick Page/Post Redirect DEV
So you can buy keyword rich domain names and use them to redirect to a peerfly CPA offer, or is that against the rules? I want to be 100% sure.
The Apache will give you the fastest redirect since it won’t pass the request along to PHP (less overhead, faster response). If that’s not good enough because you need to perform some logic then a header redirect will be the next quickest. Finally, if you really need to use it, you could use a meta redirect.
Many CPA offers supports only one country, so to get ads approved is harder as reviewers are not able to see the page. You can use Google’s Geo Apis for this purpose.
~BigGenius~
Hi luke, i ve two questions:-
1.Instead of redirecting from my own domain to PF offer, shall i just shorten it using bit .ly and then shall i post it in YT description therby promoting thru YT..?
Just wanted to know.. correct me if thats not allowed..
2.I will iframe the offer with my own domain and then i ll shorten it using bit .ly.. Is that allowed?
Am a newbie. So ur guidance ll help me out. And thanks in advance for such a fantastic informations on ur blog.. its very very useful for a newbie like me. :)
1. No, you must have your own domain redirect setup for YouTube traffic. URL shorteners are not allowed.
2. Yes, that is fine.
Thanks for your quick reply Luke. Highly appreciated. And how about the below idea?
–> ie., In order to promote thru YT, i ll create a redirect setup for the offer link with my own domain…, and then i ll shorten my domain name using shortener… is that ok?
Salvesh -
March 5th, 2013
Thanks for your quick reply Luke. Highly appreciated. And how about the below idea?
–> ie., In order to promote thru YT, i ll create a redirect setup for the offer link with my own domain…, and then i ll shorten my domain name using shortener… is that ok?
Salvesh, why in the bloody hell would you do that?
I have just gone through the above URL of yours
http://lukepeerfly.com/demos/redirect/html-example.html
It redirects to http://peerfly.com/x/0/4103/386/
Which again redirects to http://rewardzone.solicpartners.com/home.html
So there are multiple redirections in place. Can you elaborate further? I believe “http://peerfly.com/x/0/4103/386/” should be the affiliate link (with tracking and other necessary subid etc) or am I missing something here.
The offer was linking to was taken down. If you link to a live offer it’ll redirect to the correct place :)
One more question. I guess we are not suppose to use ccTLD, say .in or .co.in. In such case, will the traffic be considered as traffic from India?
Thank you for this helpful guide. One thing that concerns me about redirecting is what will happen when sponsors find out that they’re getting traffic from a blank redirect page on my domain. I’m afraid that they might think I’m using unapproved methods to direct traffic to my redirect link, and will subsequently ban me or complain to Peerfly. Is this something I should worry about, or are my fears overblown?
We don’t see many issues with this. If we get complaints about your traffic we may reach out to see what the issue is and ask you to remove the redirect (depending on how you set it up).
Thank you for answering my question!