Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 72589 invoked from network); 15 Jun 2008 13:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jun 2008 13:02:14 -0000 Received: (qmail 61680 invoked by uid 500); 15 Jun 2008 13:02:05 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 61662 invoked by uid 500); 15 Jun 2008 13:02:04 -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 61651 invoked by uid 99); 15 Jun 2008 13:02:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jun 2008 06:02:04 -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: domain of krist.vanbesien@gmail.com designates 209.85.132.240 as permitted sender) Received: from [209.85.132.240] (HELO an-out-0708.google.com) (209.85.132.240) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jun 2008 13:01:15 +0000 Received: by an-out-0708.google.com with SMTP id b2so935129ana.102 for ; Sun, 15 Jun 2008 06:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=0g06OTpTMH8iqSevAsEjPE4jiXv+e4t2TpVuFccGezg=; b=LPGYJ0J6Fxv+snWf3CBkwAzm6Xm75JpHt5WnUDga7mu5QzC46npin7p2G02D8bChOi obd8vxs41bemt2mtFYF9ZClrNoauifzY642JBQh+1vmG7TKmH4s9mj9Pt3mA+3CunpG6 +gEcb93iZbQbxR3/D+xmD1rzZdM5QIU74mWos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OXJNI7kV7pVbaEsxqNH5FuxkexXj6RzpZ2ShKiQyECvm5whAUqKyPjBUjfBzgt+xx4 qXdf4W+PKHzPXjy5kj9DDuBr8KDc+Lr/vgJhtTvVkgp0P+P8VbgbLHwUXkAgmrg+Xfrw +dnilwYVPS0vEppyIZbZuXkcrFdJFTw1ef3qQ= Received: by 10.100.166.9 with SMTP id o9mr6639157ane.36.1213534892835; Sun, 15 Jun 2008 06:01:32 -0700 (PDT) Received: by 10.100.226.5 with HTTP; Sun, 15 Jun 2008 06:01:32 -0700 (PDT) Message-ID: <6ed6382b0806150601k38b7e2d3l6b687e6be41cddf7@mail.gmail.com> Date: Sun, 15 Jun 2008 15:01:32 +0200 From: "Krist van Besien" To: users@httpd.apache.org In-Reply-To: <20080614114121.4274AC271721@dd17600.kasserver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080614114121.4274AC271721@dd17600.kasserver.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite difference Apache 2.0 and 2.2 ? On Sat, Jun 14, 2008 at 13:41, Jan wrote: > Hi! > > I have just noticed yesterday that one of my mod_rewrite rules which works fine in Apache 2.0 doesn't seem to work in Apache 2.2. > > Here is the rule: > > RewriteRule ^portfolio/([0-9]+)(/)?$ portfolio.php?serie=$1 > > So a request to portfolio/ID is supposed to be send to portfolio.php?serie=ID. This works fine on the Apache 2.0 installation but on the Apache 2.2 server the ID is somehow not passed to the script. > > However, when I change the rule to: > > RewriteRule ^folio/([0-9]+)(/)?$ portfolio.php?serie=$1 > > and call the page with folio/ID it is passed to the script. Alternatively it also works when I rename the file to something != rewrite rule, instead of changing the redirect. > > Is this supposed to be this way? Again, it works in Apache 2.0 as expected, but not in Apache 2.2. > > Any comments on this issue will are greatly appreciated. This is quite odd, and should not happen. There might be something else in your config interfering. Have you turned on RewriteLog with a sufficiently high loglevel? The rewrite log should tell you what matches are tried. Krist -- krist.vanbesien@gmail.com krist@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? --------------------------------------------------------------------- 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