PHP affiliate redirect script

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

Project Description:
I need a url.php script which does the following.

When I link:

It must redirect to: and ?utm_source=AAA&utm_medium=BBB remain same for a affiliate network.

I must be able to link multiple merchants to multiple affiliate networks example:
if then redirect

if then redirect

if merchant affiliate link not found redirect directly

some affiliate networks require encoding
if then redirect with encoding

Skills required:
Affiliate Marketing, PHP, Wordpress
Qualifications required:
us_eng_1 US English - Level 1
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.

$ 55
in 2 days
Hire hoangpn
$ 45
in 1 days
$ 49
in 1 days
$ 60
in 7 days
Hire freelanceroj
$ 35
in 0 days
$ 30
in 0 days