Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 90114 invoked from network); 8 Mar 2007 17:33:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 17:33:51 -0000 Received: (qmail 8063 invoked by uid 500); 8 Mar 2007 17:33:50 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 8042 invoked by uid 500); 8 Mar 2007 17:33:49 -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 8031 invoked by uid 99); 8 Mar 2007 17:33:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 09:33:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of matt.farey@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 09:33:37 -0800 Received: by ug-out-1314.google.com with SMTP id 75so1018222ugb for ; Thu, 08 Mar 2007 09:33:15 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=Sr2BzCWIK/PjS6AevjglKB1d9FkLwo83nGbrY3qp36Y20Z4Bs3F32GvWMMzPq7nnA1GgFljFU5Qz9vhCNDw09rPRq0+XKyofmkbbvWIiqsjmFh9fE43igLO63DpiLZ+noitl1CXEOofHmSIVU0whj7bkcCvy0foLEbvFSIs9+KE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=MHZN/Pkpi8JDiCtIuzdIMQDEQ7PLPxhpAzVPasow0AOwccJuszJi0hh64I0AeXuT+7I81ZJFkQR+HAI90AnRIHGVrg+2qkP0UvzjIDVjQDsxlDcTwdVA7VVPPeVvkkyQtnL8DjxzaiQiNod5FFV2ld5llNOcyn6RUb6bgPhBoQY= Received: by 10.66.243.2 with SMTP id q2mr7396917ugh.1173375195841; Thu, 08 Mar 2007 09:33:15 -0800 (PST) Received: from ?192.168.0.5? ( [82.69.105.150]) by mx.google.com with ESMTP id m1sm2874658ugc.2007.03.08.09.33.13; Thu, 08 Mar 2007 09:33:14 -0800 (PST) Message-ID: <45F048D8.8060705@gmail.com> Date: Thu, 08 Mar 2007 17:33:12 +0000 From: matt farey User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: users@httpd.apache.org References: <89D56563-B072-4183-BFCF-6A6818651E34@frontierflying.com> <813716b60703071048l2cee51e4m48091ab9b85db8be@mail.gmail.com> <7A39686F-24E0-4002-8C53-607C3B93524F@frontierflying.com> <813716b60703071248h61b6f5ej65d659ca46c3fdff@mail.gmail.com> <56F8F0E0-B96E-428A-AFC0-5943C4651945@frontierflying.com> <813716b60703071416wcfb2e73i9b936a0d4ce703fa@mail.gmail.com> <813716b60703071638j54c9d7b4xc3e6fc1bdc348a90@mail.gmail.com> <1D6EAB93-4101-452E-9CEE-C54EE745D4C1@frontierflying.com> In-Reply-To: <1D6EAB93-4101-452E-9CEE-C54EE745D4C1@frontierflying.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite problem Israel Brewster wrote: > Just got a response from the developer of the PHP script > (serendipity). Turns out the problem lies there, and not with the > rewrite rule. Apparently what's going on is that the php script uses > the REQUEST_URI to determine what to display. If it doesn't recognize > the REQUEST_URI (as is the case with /nagios) it just displays the > main page. It would appear that while mod_rewrite successfully > rewrites the URL and calls the PHP script, it doesn't actually change > the REQUEST_URI, so the script is still acting on /nagios, which it > doesn't recognize. I'll admit this is somewhat beyond me at the > moment, perhaps I need to look more into the difference between the > REQUEST_URI that the php script is seeing and what, exactly, > mod_rewrite is changing. At any rate, that at least explains the problem. > yeah, if you compare the number and type of rewrites for this package with the way that wordpress used to operate, there is a lot of correlation, instead now wordpress uses a much simpler form of rewrite which directs the REQUEST_URI to the application for subsequent alteration, as is the case with your serendipity app. My idea would be to handle all the serendipity rules with the app, leaving a much smaller set of rules which would happily coexist and be easy to modify. I know you say you aren't a php developer, but it wouldn't be that hard to locate and alter the script, perhaps though it would be difficult to subsequently update Serendipity and you would feel this would be a step too far. my $0.02 - when wordpress changed their rewrite rules from 2k down to 4 lines it was great! -- Matthew Farey --------------------------------------------------------------------- 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