I have a rewrite rule for a site that sends all the requests to a php handler:
/path/to/file.php?p1=a&p2=b => /handler.php?p=path/to/file.php&p1=a&p2=b
The problem is that i need to disable this rule for a directory (/stats, and /awstats, for our statistics)
/awstats and /stats are apache aliases, not directories.
I have tried to add
<directory /path/to/awstats/cgi-bin>
RewriteEngine Off
</directory>
but mod_rewrite is still invoked in the directory.
What can i do ?