Mobile app version of vmapp.org
Login or Join
Gonzalez347

: .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>

@Gonzalez347

Posted in: #Htaccess #Wordpress

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

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme