You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Batara Kesuma <bk...@george24.com> on 2003/01/04 22:30:43 UTC

[users@httpd] mod_rewrite for web maintenance

Hi,

I want to redirect all request to maintenance.html when I am doing web
maintenance. I tried to use mod_rewrite, but it didn't work. This is what
I put in my httpd.conf:

RewriteEngine on
RewriteRule .* /maintainance.html

What did I do wrong? Please help, thanks a lot.

--bk

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_rewrite for web maintenance

Posted by Batara Kesuma <bk...@george24.com>.
On Sun, 5 Jan 2003 06:30:43 +0900
Batara Kesuma <bk...@george24.com> wrote:

> Hi,
> 
> I want to redirect all request to maintenance.html when I am doing web
> maintenance. I tried to use mod_rewrite, but it didn't work. This is
> what I put in my httpd.conf:
> 
> RewriteEngine on
> RewriteRule .* /maintainance.html


Ok, I found the answer. It worked after I put Rewrite part inside
<VirtualHost>. Thanks for the help everyone :)

--bk

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_rewrite for web maintenance

Posted by Andrea <so...@polin.it>.
Thanks for the tips!

Andrea.

----- Original Message -----
From: "Victor Tsang" <vi...@outblaze.com>
To: <us...@httpd.apache.org>
Sent: Monday, January 06, 2003 02:57
Subject: Re: [users@httpd] mod_rewrite for web maintenance


> I have done something similar before, and may I remind you to put in the
> no cache directive either in form of http header or meta tag in html.  I
> forgot to do it once a long time before ending up a bunch of user cached
> the page and renending them unable to access our site for days.
>
>
> Tor.
>
>
> Andrea wrote:
> >
> > Hi,
> > I'd use:
> >
> > RewriteEngine On
> > RewriteCond %{REQUEST_URI} !/maintainance.html
> > RewriteRule . /maintainance.html
> >
> > Mr Andrea, Italy
> >
> > ----- Original Message -----
> > From: "Batara Kesuma" <bk...@george24.com>
> > To: <us...@httpd.apache.org>
> > Sent: Saturday, January 04, 2003 22:30
> > Subject: [users@httpd] mod_rewrite for web maintenance
> >
> > > Hi,
> > >
> > > I want to redirect all request to maintenance.html when I am doing web
> > > maintenance. I tried to use mod_rewrite, but it didn't work. This is
what
> > > I put in my httpd.conf:
> > >
> > > RewriteEngine on
> > > RewriteRule .* /maintainance.html
> > >
> > > What did I do wrong? Please help, thanks a lot.
> > >
> > > --bk
> > >
> > > ---------------------------------------------------------------------
> > > The official User-To-User support forum of the Apache HTTP Server
Project.
> > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_rewrite for web maintenance

Posted by Victor Tsang <vi...@outblaze.com>.
I have done something similar before, and may I remind you to put in the
no cache directive either in form of http header or meta tag in html.  I
forgot to do it once a long time before ending up a bunch of user cached
the page and renending them unable to access our site for days.


Tor.


Andrea wrote:
> 
> Hi,
> I'd use:
> 
> RewriteEngine On
> RewriteCond %{REQUEST_URI} !/maintainance.html
> RewriteRule . /maintainance.html
> 
> Mr Andrea, Italy
> 
> ----- Original Message -----
> From: "Batara Kesuma" <bk...@george24.com>
> To: <us...@httpd.apache.org>
> Sent: Saturday, January 04, 2003 22:30
> Subject: [users@httpd] mod_rewrite for web maintenance
> 
> > Hi,
> >
> > I want to redirect all request to maintenance.html when I am doing web
> > maintenance. I tried to use mod_rewrite, but it didn't work. This is what
> > I put in my httpd.conf:
> >
> > RewriteEngine on
> > RewriteRule .* /maintainance.html
> >
> > What did I do wrong? Please help, thanks a lot.
> >
> > --bk
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_rewrite for web maintenance

Posted by Andrea <so...@polin.it>.
Hi,
I'd use:

RewriteEngine On
RewriteCond %{REQUEST_URI} !/maintainance.html
RewriteRule . /maintainance.html


Mr Andrea, Italy



----- Original Message -----
From: "Batara Kesuma" <bk...@george24.com>
To: <us...@httpd.apache.org>
Sent: Saturday, January 04, 2003 22:30
Subject: [users@httpd] mod_rewrite for web maintenance


> Hi,
>
> I want to redirect all request to maintenance.html when I am doing web
> maintenance. I tried to use mod_rewrite, but it didn't work. This is what
> I put in my httpd.conf:
>
> RewriteEngine on
> RewriteRule .* /maintainance.html
>
> What did I do wrong? Please help, thanks a lot.
>
> --bk
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org