Re: [users@httpd] RewriteEngine conditions?

2014-08-07 Thread Walter H.
On 07.08.2014 15:48, Igor Cicimov wrote: On 07/08/2014 2:47 PM, "Mark jensen" > wrote: > > I want to redirect all the inside network IPs to an error page except some IPs, A condition like this: > > if ( IP_from_Network = 192.168.1.0 and ((IP != 192.168.1.4) or (I

RE: [users@httpd] RewriteEngine conditions?

2014-08-07 Thread Mark jensen
I have tried use what you just suggest:    RewriteCond   %{REMOTE_ADDR}   ^192\.168\.1\.*$   RewriteCond   %{REMOTE_ADDR}   !^192\.168\.1\.4$   RewriteCond   %{REMOTE_ADDR}   !^192\.168\.1\.5$   RewriteCond   %{REMOTE_ADDR}   !^192\.168\.1\.6$ But it didn't work.

Re: [users@httpd] RewriteEngine conditions?

2014-08-07 Thread Igor Cicimov
On 07/08/2014 2:47 PM, "Mark jensen" wrote: > > I want to redirect all the inside network IPs to an error page except some IPs, A condition like this: > > if ( IP_from_Network = 192.168.1.0 and ((IP != 192.168.1.4) or (IP != 192.168.1.5) or (IP != 192.168.1.6)) ) > { > redirect to an error page >

[users@httpd] RewriteEngine conditions?

2014-08-06 Thread Mark jensen
I want to redirect all the inside network IPs to an error page except some IPs, A condition like this: if ( IP_from_Network = 192.168.1.0 and ((IP != 192.168.1.4) or (IP != 192.168.1.5) or (IP != 192.168.1.6)) ) { redirect to an error page } so I' trying to achieve this using RewriteEngine:  R