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 /
COLOR=“#FF0000” ↩︎