Rewrite not working!

#1
The following rewrite code works on Apache server but not on OLS server:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond expr "-R '114.147.71.22/24'"
RewriteRule ^ - [F]
</IfModule>

Please help,. Thanks!
 

Cold-Egg

Administrator
#2
Hi,
It is newly supported with LSWS v6.2+, but it does not apply to OpenLiteSpeed yet.
Currently, please use the "RewriteCond %{REMOTE_ADDR}" method with OpenLiteSpeed.
 
Top