This is a discussion on Mod_Rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; I have the following rewrite rule in my virtual host directive. RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/www.virtualdomain.com:...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |