I'm the author of a Drupal - phpBB integration hack that relies heavily on mod_rewrite.
The problem is that there are two files:
/forum/login.php
/forum/admin/login.php
The requests for the first one need to be redirected to /login (Drupal), whereas requests for the second go to the administration interface and should not be rewritten.
My understanding is that mod_rewrite strips away the path if the rewrite rules are defined in .htaccess files. I normally don't use those, but lots of people do and I get their complaints.
Is there any other way to detect whether the request is for something in the admin-directory? I have tried using the requesturi environment variable and placing a .htaccess file that should disable mod_rewrite in the admin directory. I have also tried setting no rules, but keeping mod_rewrite enabled. None of those appear to work.
Any ideas?