Having trouble with htaccess redirect wildcard

Hi, I am a newbee so please be patient with me, I appreciate any guidance that can be given.

I am been trying to set up a rewrite rue for an affiliate link that will collect the affiliate ID and landing page URL by using wildcards.

Here is what I am trying to achieve:

www.mysite.com/anyaffiliateIDnumber/landingpageURL

should redirect to:

http:affiliatesite.com/affiliateID=anyaffiliateIDnumber&url=landingpageURL

So here is what I have so far:
RewriteRule [1]([0-9]+)[/COLOR]/COLOR=“#0000FF”[/COLOR]$ http:affiliatesite.com/affiliateID=$1&url=$2

The problem is the landing page URL begins http://www. and it seems to be collecting to many /


  1. COLOR=“#FF0000↩︎

As an example:
www.cashxl.com/145554/http://www.mobiles.co.uk/t-mobile-white-blackberry-bold-9780.html

should redirect to

http://www.mobiles.co.uk/t-mobile-white-blackberry-bold-9780.html through the 145554 affiliate link as follows:

http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=145554&merchantID=3183&programmeID=8291&mediaID=0&tracking=&url=http://www.mobiles.co.uk/t-mobile-white-blackberry-bold-9780.html

but it is collecting to many / and returning
http://www.mobiles.co.uk/http:/www.mobiles.co.uk/t-mobile-white-blackberry-bold-9780.html


  1. COLOR=“#FF0000↩︎