Disable mod_rewrite for a specific directory

Discuss practical ways rearrange URLs using mod_rewrite.

Disable mod_rewrite for a specific directory

Postby katana » Wed Dec 11, 2002 5:07 am

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 ?
katana
 
Posts: 1
Joined: Wed Dec 11, 2002 5:04 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 5 guests

cron