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

Delete all from a table
I can not get the following code to work. If I run the sql statement in the db it will delete all t

Problem with DB connection
Hello there! I'm new to this forum and I'm new to PHP coding also. I wrote something that doesn't ma

Php If in MySql query (hiding labels if a field is empty)
Okay, I've been trying to do this for a while, and I'm finally going to ask for help so I can get th

difference between datetimes
($row['totime']-$row['fromtime'])/60

this is giving me 0

example of totime and fromtim

Company Code for Vendors created through Business Partners
Hi, experts!

I'm trying to set up the integration between Business Partner (BP) and Vendo

Embedding flash object in Else statement
This is my first major project in PHP and I'm having some trouble embedding a flash object in an Els

Checking if field is empty AND using !is_numeric
Hi lads,

Need to be able to display an error message (using isset?) that says "Cant lea

array_count_values question?
ok i'm trying to create a top ten list from a database of listed favorite movies.

the followi

eregi to preg
Im converting my regex for php 5.3 and I am stuck on the following

Code: [Select]if((eregi(&q

Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');

/* Set login to false initially */

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