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

How to separate records and ORDER BY
Let say i have 100 records and displayed in one page, then i want to get the records from 50-100 and

Dynamic Data + Sql Server 2005 Enterprise?
Hi! I have just started to learn ASP.NET, and it looks like it is quite a lot to learn. Im not reall

WM transfer order: confirm different batch than proposed by system
Hi folks,

following scenario: we have a full WM with mixed batch numbers allowed in stora

IF STATEMENT HELP
Hi
i have created a calendar from a table:

Code: Calendar: October 2009
<table w

strptime() equivalent for php4 ?!
Greetings!

this is my first post, thank you in advance for your replies.

Well, the ti

Not "Just Another" MMORPG - text based.
Hello,

I've been learning MySQL and PHP for the last 2-3 years.
Though, I've had long paus

UDP Multicast question
Hey,

Im not really in the know when it comes to network related programming and activitie

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

Calculating a rating by adding number of points and dividing by number of items
I have a site that users can post links to files to download. They can rate these files on a 1-5 sca

PHP & Java
Hello,

can PHP code be used inside java code?

Code: [Select]<SCRIPT LANGUAGE=&q

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