0

I cannot figure out how to negate a rewritecond that matches client IP:

RewriteCond expr "-R '192.168.1.0/24'"

Let's say that I want to match if the remote ip address is not this one. What's the syntax?

I read Expressions in Apache HTTP Server but didn't find it. Thanks!

1 Answer 1

2

Found it!

RewriteCond expr "! -R '12.345.678.90/28'"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .