Redirecting affiliate links

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
I have an affiliate website. When clicking the product, I would like it to redirect to an affiliate link. No matter how I try it does not redirect to the affiliate link. You just have to show me how to do it in PHP and in .htaccess and I will do the rest of all the affiliate links I have. Also I would like the affiliate link to be cloaked. I am using PHP, smarty template engine, OOP. Another requirement is a fix on my subcategory, I would like the subcategory to be highlighted after clicking it. Thank you.

Skills required:
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.