close site for maintenance

Posted on 16th Feb 2014 by admin

i get a tutorial, saying the following code can put our site offline, and only the developer can view the site

Code: [Select]RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^111.222.333.444$
RewriteCond %{REQUEST_URI} !^/maintenance.php$
RewriteRule ^(.*)$ /maintenance.php [L]

for the mentioned purpose, is that replace this line
RewriteCond %{REMOTE_ADDR} ^111.222.333.444$
with the developer ip address?

then, how to replace our ip in this line: ^111.222.333.444$
still need to put ^ . and $

can give example in putting an ip address in this line?

thanks

Other forums