If it possible to have a mod_rewrite that does the following:
When a user visits http://www.mysite.com/tom/ (which tom doesn't exist), they get redirected to http://www.mysite.com/index.php?aff=tom
However, if the user visits http://www.mysite.com/bob/ (which does exist), they get the right site information.