httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] Cancel a previous redirect declaration
Date Wed, 12 Nov 2003 07:39:50 GMT
Martin Sarsale wrote:
> Dear all: I've declared a global redirect so it affects every virtualhost.
> Now, I need to cancel it for a specific VH. Is this possible?

I don't think it is possible to override a global Redirect directive.
Perhaps this could work:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/abc
    RewriteCond %{SERVER_NAME} !^www\.dontredirectme1\.com$
    RewriteCond %{SERVER_NAME} !^www\.dontredirectme2\.com$
    RewriteRule (.*)$1

Robert Andersson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message