Get Yourself The Plugin For This Strip Ads
Powered by MaxBlogPress  

 

16th Hide your affiliate links using .htaccess file

I?ve been searching for a method to hide the affiliate link for months. If you?re long involve in the affiliate programs then hiding affiliate links might just a simple daily routine work. Please let me know if you have a better idea. The best method that I found so far is by using .htaccess file to redirect your affiliate link. For example, you have an affiliate links that looks like below:

http://www.affiliate.com/join.html?refer=123456

You can redirect the above link using the URL below:

http://www.yourdomain.com/sample.php

That means you will be using the new URL for the link instead of the old affiliate link. Your visitors will only be shown by the new URL. When they click on the new URL, they will be redirect to the old affiliate link or the destination you wanted. All you need to do is place 2 simple lines into your .htaccess file.

RewriteEngine on

RewriteRule ^sample.php$ http://www.affiliate.com/join.html?refer=123456 [R]

You can place it at the bottom of the file. If you have another affiliate link that you need to add, just repeat the above steps. Replace sample.php with another name that you like and change the affiliate link. Then add the 2 new lines at the bottom.

P/S: Check out this post on how to access your .htaccess file.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

I was wondering how people do that. Great info

nice idea. I usually just make a file for each thing and load the site in an iframe. But this idea seems a little easier.

Could you do this in a subfolder as well - so that you don’t increase the size of your main .htaccess too much?

This is a nice idea. Im sure there may also be some link redirect plugins somewhere for wordpress.

Thank you for the idea:)!

OffTopic: For how long have you been displaying the “Buy this ad” from 125box.com? Did you have any advertisers interested in publishing any ads on your blog?

I’m not sure about doing this in a sub folder. Haven’t try that before.

As for the 125box ads, I’ve been using it for a week. I did have some advertisers coming in but it seems that the service is not that good. Not sure if it is the advertisers call back the ads or there is problem putting up the ads. Still trying to figure this out.

Great info Jason. I’ll check it out.

I found a updated version here: http://www.bizquarium.com/friendly-affiliate-links

And I have tested it out and works ok. Only thing is I have to go in a re-edit all my post. check my seobook or pepperjam post to see it in action so far.

Hey Kumo- Thanks for “touching” my blog. Can you shed some light on the issues you had with 125box?

Well, at this moment I still haven’t see any ads up on the 125box. I approved one ads for 125box but did not see it appeared on my blog. I check back and it stated “reject” on my account. Some feedbacks have been send to 125box. I’m still not clear with the situation at this moment. As 125box is still very new, I give it some time to do their work. I’ll continue to evaluate the out come and their work progress. 125box needs to respond and work fast as there are many compatitors for this type of advertisement. There are few other advertisement that I like to try and time is almost up for 125box.

Hm.. Very strange. Why would they reject an ad you approved? Technically, it should be the other way around. Meaning they approve an ad(because the more ads they approve the better for them) while you reject the ad based on its relevance or whatever reasons you deem fit.

That’s right. That’s one strange point about it. For now 125box takes up 50% of what you get. So just this reason is enough for me to get rid of it later.

That’s one way,

but you can also do it with some easy php code and some functions.
Do a search for: header(”location…

A few tweaks will make it work like a charm ;)

Thanks for the info Eric.

What about using tinyurl.com ? I’ve heard people use that to hide their affiliate links as well. Or is that the other direction only?

Thanks for the info. As long as it can hide the affiliate links then it’s consider fine with me. I’ve just check tinyurl.com and seems to me it’s a good tool. I noticed a lot of sites using the same kind of URL and did not realize about it. Thanks for sharing.

I really hate clicking links which actually takes me somewhere else.
It’s a very unethical way of advertising and fooling your own visitors.. They shall know where they’re been redirected.
These tricks could actually forward people to malicious sites.

I think lots of AD companies are against this particular issue. They want people to see their referral as well.

Or may be I’m being much concerned.

Whatever, I don’t like sites which fools people to click on their link

That actually depends on how the services are being used.

Leave a comment

(required)

(required)


Related Posts from the Past: