I am trying to exclude a directory with ISAPI-Rewrite (note: this is a windows/iis port of mod-rewrite).
The directory I want to exclude is "api" when it is at the root of the site.
Here is my rule:
RewriteRule ^(/api/)(.+)$ $1$2 [NC, L]
A request would look something like this: /api/v2/users?usernames=scottw
Unfortunately, the querstring value is always being excluded and the url is being rewrittten as /api/v2/users.
I am attacking under the assumption that (.+) would capture everything else.
Any suggestions? Or a better way to exclude a directory?
Thanks
Update: I have also simplified the rule, but that has not changed anything either:
RewriteRule ^(/api/.+)$ $1