You have chosen to sponsor your bid up to a maximum amount of .
I need a url.php script which does the following.
When I link:
It must redirect to: http://track.affiliatenetwork.com/?AID=111&MID=222&redirect=http://www.merchant.com/product.html?utm_source=AAA&utm_medium=BBB
http://track.affiliatenetwork.com/?AID=111&MID=222&redirect= 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 http://www.merchant.com/ANY-DEEP-LINK then redirect http://track.affiliatenetwork.com/?AID=111&MID=222&redirect=http://www.merchant.com/ANY-DEEP-LINK?utm_source=AAA&utm_medium=BBB
if http://www.ANOTHER-MERCHANT.com/ANY-DEEP-LINK then redirect http://track.ANOTHER-AFFILIATE-NETWORK.com/?AID=111&MID=222&redirect=http://www.ANOTHER-MERCHANT.com/ANY-DEEP-LINK?utm_source=AAA&utm_medium=BBB
if merchant affiliate link not found redirect directly
some affiliate networks require encoding
if http://www.MERCHANT3.com/ANY-DEEP-LINK then redirect with encoding http://track.AFFILIATE-3.com/?AID=111&MID=222&redirect=http%3A%2F%2Fwww.ANOTHER-MERCHANT.com%2FANY-DEEP-LINK%3Futm_source%3DAAA%26utm_medium%3DBBB