Jump to content

close site for maintenance


orange08

Recommended Posts

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

 

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?

 

thx!

Link to comment
https://forums.phpfreaks.com/topic/178697-close-site-for-maintenance/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.