Hi, I am kinda new to Apache http server. Recently I am trying to implement a redirection rule base on the clients IP address. My problem is that even if for example I commented a RewriteCond line that corresponds to an IP address subnet the server still redirects the clients belonging to that subnet. Below is the rewrite rules I have added at the bottom of my httpd.conf. Kindly advise on what might be causing this problem. RewriteEngine on RewriteLog /root/apache.log RewriteLogLevel 9 #RewriteCond %{REMOTE_ADDR} ^10\.85\. [OR] #Dubai IP RewriteCond %{REMOTE_ADDR} ^10\.80\.0\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.1\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.2\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.3\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.80\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.9\.1[0-9] [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.9\.2[0-5] [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.[1-6][0-9]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.7[0-2]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.120\.[1-9] [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.120\.[1-2][0-9] [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.120\.30 [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.12[8-9]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.13[2-8]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.14[4-8]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.1[5-9[0-9]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.2[0-2[0-9]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.23[0-2]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.23[4-5]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.80\.24[8-9]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.81\.[0-7]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.81\.12[8-9]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.81\.13[0-5]\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.8[2-3]\.$ RewriteRule ^(.*)$ http://86.96.212.68:2546/iptv/clients/online1/amino1/index.html Thanks in advance