Forum Moderators: phranque
It seems to me (from your description), that the code is doing what most webmasters would want it to do. So please also describe in detail what URLs you want to rewrite (provide examples), and what URLs you do not want to rewrite (with examples).
Jim