RewriteEngine On RewriteCond %{HTTP:X-Forwarded-For} (170\.140|163\.246|192.168|10)\. RewriteRule ^$ /home/index-internal.html [R] # Otherwise RewriteRule ^$ /home/index.html [R]