website for maintenance Apache htaccess will not work with my ip


Even when i add my IP it still tells me that my site is closed (even tho my ip add is right!)

Anyone any ideas what ive done wrong? Thanks

RewriteEngine On

RewriteBase /

RewriteCond %{REMOTE_ADDR} !^82.28..$

RewriteCond %{REQUEST_URI} !^/maintenance/index.php$

RewriteRule ^(.*)$ /maintenance/index.php [L]

If this is all right is it something to do with virtualmin ive been trying to get this to work for hours now without any luck :/


ok I added "echo $_SERVER['REMOTE_ADDR'];" and it showed/telling me my ip adress was something its not

miles out also got a few mates to confirm it was also giving them the wrong Ip's

What could be doing this? thanks

Fixed I was missing mod_cloudflare as I use them for my dns

Cheers :)