[support] Testing custom maintenance page without putting the site off-line (D6)

Steve Karsch steve at stevekarsch.com
Tue Mar 6 14:13:31 UTC 2012


You could also use settings.php

if ($_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.xxx') {
  $conf['maintenance_mode'] = 1;
}

where xxx.xxx.xxx.xxx = your (client) IP address.
steve
steve at stevekarsch.com

On Mon, Mar 5, 2012 at 11:51 PM, steve <stever at up-south.com> wrote:
> On 3/5/2012 6:59 PM, Ken Robinson wrote:
>> At 05:57 PM 3/5/2012, Steve wrote:
>>> Use htaccess and you won't affect the rest of your users
>>>
>>> Ken Robinson<kenrbnsn at rbnsn.com>  wrote:
>>>
>>> Is there any way to test a D6 custom maintenance page without putting
>>> the site into maintenance mode?
>> That answer doesn't mean a whole lot by itself. Care to explain your
>> answer better?
>>
>> Ken
> create a custom mx page
> then create an htaccess file (or edit your existing one to state the
> following
>
> assuming that the ip on your machine (not the server) is 1.2.3.4
> RewriteEngine on
> RewriteCond %{REMOTE_ADDR} ^1.2.3.4$
> RewriteRule ^(.*)$ [url.to.custom.mx.page] [L]
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list