Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 50171 invoked from network); 17 Sep 2008 20:09:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2008 20:09:29 -0000 Received: (qmail 94892 invoked by uid 500); 17 Sep 2008 20:09:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 94878 invoked by uid 500); 17 Sep 2008 20:09:15 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 94867 invoked by uid 99); 17 Sep 2008 20:09:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 13:09:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [75.151.8.132] (HELO mail.e-integration.us) (75.151.8.132) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 20:08:15 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.e-integration.us (Postfix) with ESMTP id 3289E103C4F6 for ; Wed, 17 Sep 2008 16:03:46 -0400 (EDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.399 X-Spam-Level: Received: from mail.e-integration.us ([127.0.0.1]) by localhost (mail.e-integration.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nvkKDr2eNP+t for ; Wed, 17 Sep 2008 16:03:39 -0400 (EDT) Received: from mail.e-integration.us (mail.e-integration.us [192.168.100.221]) by mail.e-integration.us (Postfix) with ESMTP id CC2F3103C4F4; Wed, 17 Sep 2008 16:03:39 -0400 (EDT) Date: Wed, 17 Sep 2008 15:03:39 -0500 (CDT) From: Yoom Nguyen To: users@httpd.apache.org Cc: users@httpd.apache.org Message-ID: <25712964.351221681819810.JavaMail.root@mail> In-Reply-To: <1404e5910809171240h52e1ecbbo40d947161c8ac55@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [65.123.86.2] X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Subject: Re: [users@httpd] Rewrite Rule help Eric, That was it, I need that RewriteCond. Thank you so much for your help. Y ----- Original Message ----- From: "Eric Covener" To: users@httpd.apache.org Sent: Wednesday, September 17, 2008 3:40:15 PM (GMT-0500) America/New_York Subject: Re: [users@httpd] Rewrite Rule help On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen wrote: > > DocumentRoot /srv/www/maintenance/ > > RewriteEngine on > RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) > RewriteRule .* -[F] > > RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L] Add a / before maintenance.html, and Protect the rule by preceding it with RewriteCond %{REQUEST_URI} !=/maintenance.html (you can do the latter via your regex, but it's usually simpler to guard it the other way) -- Eric Covener covener@gmail.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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 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