I would do it like this: have the RE on index and redirect from there to A or B.