I got it to work by using the following method.
if (eregi ('authenticate', $HTTP_SERVER_VARS['REQUEST_URI']))
{
include ("authenticate.php");
exit;
}
$REMOVE_AUTHENTICATE = eregi_replace("\?authenticate/", "", $REQUEST_URI);
$AUTH = eregi_replace("/", "", $REMOVE_AUTHENTICATE);
If there is a better method I am all open to suggestions