Re: Mod_Rewrite
tstrokes wrote:
> I have the following rewrite rule in my virtual host directive.
> RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/http/www.virtualdomain.com:80/www_virtualdomain_com/VirtualHostRoot/$1
> [L,P].
> I was wondering how I could exclude one directory from this Rewrite
> Rule.
> I want every request to be redirected to the zope server except when
> they request the directory 'test'.
> --tstrokes
>
Prefix your rewrite rule with rewrite conditions (untested).
RewriteCond %{REQUEST_URI} !^/test$
RewriteCond %{REQUEST_URI} !^/test/(.*)
Jim
|