Msg#: 3542127 posted 2:54 am on Jan 8, 2008 (gmt 0)
No - I'm just beginning to plan the affiliate program and the first step was to look at how I'd pass the variable, set cookies, redirect and so forth.
So all I did was type in an example URL with the?AFF=ID at the end - and was surprised that the variable wasn't available on the page (I've checked by trying to echo the variable as well as getting through get_defined_vars)
Msg#: 3542127 posted 3:15 am on Jan 8, 2008 (gmt 0)
Ah, clearer now. In order to pass the AFF= name/value pair through the RewriteRule where you are passing the VAR1 and VAR2 parameters to /index.php, you will need to use the [QSA] --Query String Append-- flag on the rule. Otherwise, your VAR1/VAR2 parameters will replace the original AFF= query by default.
Merging [QSA] with your existing flag, use [QSA,L].