Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 79404 invoked from network); 1 Jan 2011 20:00:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jan 2011 20:00:35 -0000 Received: (qmail 75870 invoked by uid 500); 31 Dec 2010 18:50:33 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 75818 invoked by uid 500); 31 Dec 2010 18:50:33 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 75809 invoked by uid 99); 31 Dec 2010 18:50:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Dec 2010 18:50:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of info@bnoordhuis.nl designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Dec 2010 18:50:25 +0000 Received: by yxl31 with SMTP id 31so5905203yxl.18 for ; Fri, 31 Dec 2010 10:50:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.95.17 with SMTP id o17mr10706556yhf.10.1293821404154; Fri, 31 Dec 2010 10:50:04 -0800 (PST) Received: by 10.236.110.3 with HTTP; Fri, 31 Dec 2010 10:50:04 -0800 (PST) X-Originating-IP: [87.214.96.125] In-Reply-To: References: Date: Fri, 31 Dec 2010 19:50:04 +0100 Message-ID: Subject: Re: Overriding mod_rewrite from another module From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Fri, Dec 31, 2010 at 18:17, Joshua Marantz wrote: > Is there a better way to solve the original problem: preventing mod_rewrite > from corrupting mod_pagespeed's resources? >From memory and from a quick peek at mod_rewrite.c: in your translate_name hook, set a "mod_rewrite_rewritten" note in r->notes with value "0" and return DECLINED. That'll trick mod_rewrite into thinking that it has already processed the request.