website for maintenance Apache htaccess will not work with my ip

  • Xencored
  • 05/08/10
  • Offline
Posted: Mon, 2012-01-23 15:29

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

Cheers


ok I added "echo

  • Xencored
  • 05/08/10
  • Offline
  • Mon, 2012-01-23 15:52

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

  • Xencored
  • 05/08/10
  • Offline
  • Fri, 2012-01-27 09:52

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

Cheers :)