Forum Moderators: coopster
What i would like to do is setup a PHP/htaccess redirect of some sort to redirect a link to an affiliate link, problem is i would like to keep the aff id in the url
Example:
ht*p://www.mydomain.com/info.php?a=1234&p=?&t=?
or preferably
ht*p://www.mydomain.com/info.php?p=?&t=?
redirects to:
ht*p://www.affiliatesurl.com/click?a=1234&p=?&t=?
What i would like is to keep the last 2 variables if possible as i have over 2000 links and they are deep aff links so creating a simple redirect for every url would result in one crazy .htaccess file as for creating 2000 meta refresh pages! ouch!
If i could implement something like the above with PHP i could do a simple search/replace of www.affiliatesurl.com/click?a=1234& to www.mydomain.com/info.php?
Many Thanks to anyone and everyone who can help.