httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sarsale <msars...@buenosaires.gov.ar>
Subject Re: [users@httpd] Cancel a previous redirect declaration
Date Wed, 12 Nov 2003 12:53:31 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 (.*) http://www.ble.com$1
> 

Ok, I'll use that if noone has a better idea :)
Anyway, is much clean that my 'redirect and alias' solution :)

I guess that RedirectMatch doesn't has the servername on the string it matches, right?


-- 
you can find my public PGP/GPG key at http://www.n3rds.com.ar/files/martin_sarsale.key

Mime
View raw message