On Wed, Sep 25, 2019 at 6:23 AM Luis Speciale <lspeciale@xxxxxxxxx> wrote: > > Hi > > I want to redirect (in my local server) all the external visitors that don't ask for an existing directory. > > <If "%{REMOTE_ADDR} !='192.168.0.254' && %{REQUEST_FILENAME} !='/Library/WebServer/Documents/YES/'"> > RedirectMatch ^/((?!index_ext.html).*)$ /index_ext.html > </If> > > But AND (&&) doesn't seem to work. I'm always redirected to /index_ext.html > > What am I missing ? That recipe works for me. I suggest preceding with: Header always set rf "expr=%{REQUEST_FILENAME}" Header always set ra "expr=%{REMOTE_ADDR}" And see if it's not some more subtle string matching problem. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx