Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EFEE898D1 for ; Mon, 16 Apr 2012 01:41:27 +0000 (UTC) Received: (qmail 7102 invoked by uid 500); 16 Apr 2012 01:41:25 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6988 invoked by uid 500); 16 Apr 2012 01:41:25 -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 6980 invoked by uid 99); 16 Apr 2012 01:41:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 01:41:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of covener@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 01:41:17 +0000 Received: by iafj26 with SMTP id j26so9117580iaf.18 for ; Sun, 15 Apr 2012 18:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=d3gTRaCb3jbJdrdiZuyooRm25kii4bO/wfmMivBaYdc=; b=hr4DRx2Ek32ecjSmNbN8apcXRyZZTkRJtGUKWFLxKRSTJB6CPN5nd6mYfiKQ1Y/EML 9vDAlosAfkzw6WICPrM5xVnz3QTyhg4Uy2IOyRwvQ1ydvw7F5+pA651lJXI6DWfBG0qr ufMgnmB2YOAeBaAXKlnE/O6Xt0M0Iu/686VKJlyuwusk+DIkx3svadaqyUuB3IoJ1MHN vRVG0L2qU8U6ddzQf98tSYkWjMhNE5lY7NcynQ2ngsJ1NZ2cWvgsFyhVbgYVU/gzM9Gh lx8YeMzo6IIxSZ+I9wiqt+6/zdegrAn6/H1FJ/XHXhVGCXtjfGqqxNQc2X5hVc1EixTx XutQ== MIME-Version: 1.0 Received: by 10.50.40.228 with SMTP id a4mr4051699igl.60.1334540456628; Sun, 15 Apr 2012 18:40:56 -0700 (PDT) Received: by 10.50.157.197 with HTTP; Sun, 15 Apr 2012 18:40:56 -0700 (PDT) In-Reply-To: <1334539964.87786.YahooMailClassic@web111723.mail.gq1.yahoo.com> References: <1334539964.87786.YahooMailClassic@web111723.mail.gq1.yahoo.com> Date: Sun, 15 Apr 2012 21:40:56 -0400 Message-ID: From: Eric Covener To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [users@httpd] mod_rewrite problem > # RewriteRule ^(.*)$ coffee.cgi?type=$1 > But apache2 erroneously outputs 'You ordered a coffee.cgi', instead of 'You ordered a mocha'. When you make a substitution in htaccess with mod_rewrite, the resulting substitution gets fed back in and rewrites get a chance to run against the new URL. So you want to protect this rule so it does not match requests to coffee.cgi, the simplest way being to prefix with RewriteCond %{REQUEST_URI} !=/coffee.cgi --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org