: .htaccess IP whitelist is being ignored I have the following in my .htaccess file to only allow access from a block of IP's and everyone else is being redirected: <IfModule mod_rewrite.c>
I have the following in my .htaccess file to only allow access from a block of IP's and everyone else is being redirected:
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{REQUEST_URI} !/custom-page.php$
RewriteCond %{REMOTE_ADDR} !^111.111.111.111
RewriteCond %{REMOTE_ADDR} !^222.222.222.222
RewriteRule $ custom-page.php [R=302,L]
</IfModule>
For some reason the IP's that are on the whitelist are still getting redirected to the custom-page.php
More posts by @Gonzalez347
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.