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

RewriteCond expr "-R ''"

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!


Found it!

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.