httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif W" <warp-...@usa.net>
Subject Re: [users@httpd] serve same doc to all requests
Date Fri, 03 Oct 2003 13:47:19 GMT
This seemed interesting and simple enough, so I decided to try it out and
got something which worked in about 5 minutes.  My first mod_rewrite usage,
so it may not be the best, but it seems to work ok.  :)

    RewriteEngine On
    RewriteRule !^updating\.html$ updating.html

What I'm trying to do is, for any page that is not updating.html, rewrite it
to updating.html, otherwise just serve updating.html (to avoid looping).

Leif

----- Original Message ----- 
From: "John Smith" <john_smith_45678@yahoo.com>
To: <users@httpd.apache.org>
Sent: Friday, October 03, 2003 3:51 AM
Subject: [users@httpd] serve same doc to all requests


> I'm trying to figure out a way to disable all requests
> to a site and just serve an "updating..." page. I've
> tried:
>
> RedirectMatch * /updating.html
>
> This causes endless redirects, until the browser
> quits.
>
> RewriteRule * /updating.html
>
> This just caused the browser to spin.
>
> I'm sure there's a way :).
>
> TIA,
> John
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message