[eluser]btray77[/eluser]
I know this is old but I'm working on a similar project and want to know what was the final outcome?
I was going to do similar to the above example except get the count of the URI segments and if the last two equals an affiliate id then redirect to page without the last two after setting the cookie. This way you could deep link to pages...