close site for maintenance


Posted on 16th Feb 2014 07:03 pm 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

No comments posted yet

Your Answer:

Login to answer
148 Like 51 Dislike
Previous forums Next forums
Other forums

I think i'm using the syntax incorrectly
Hi Everyone!

I'm new to this forum and a newbie with PHP - I'm glad I found this site - I hop

Passing Variables
What I'm wanting to do is when the user clicks on Arenas it will know the name of the country it's w

COOIS - Saving Object Overview WIP Status layouts
COOIS - Would like to be able to save the layout of an Object Overview - WIP Status report. There i

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

Question about ShowWindow()
Hello....

I'm struggling with sumpin, and I hope y'all can help.

I've got a CFormView

Filename and Line Number Custom Error
I have a class, with a method that accepts 2 parameters. I would like to output error messages.

Is there a quick way to do this?
Hi all,

I need to create a mysql table from php that goes a little something like this

Displaying returned XML in another PHP page
I have an online payment form that will return XML given if a payment is successful or declines. I

Mail form doesn't send Russian/Cyrillic characters correctly?
When someone enters foreign characters (like Cyrillic text, and Japanese/Chinese probably gives the

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash