Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 93073 invoked from network); 28 Mar 2006 07:21:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 07:21:41 -0000 Received: (qmail 1168 invoked by uid 500); 28 Mar 2006 07:21:04 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 654 invoked by uid 500); 28 Mar 2006 07:21:02 -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 643 invoked by uid 99); 28 Mar 2006 07:21:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 23:21:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.186.42.179] (HELO 26.mail-out.ovh.net) (213.186.42.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 23:21:01 -0800 Received: (qmail 150 invoked by uid 503); 28 Mar 2006 07:20:51 -0000 Received: (QMFILT: 1.0); 28 Mar 2006 07:20:51 -0000 Received: from b7.ovh.net (HELO mail152.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 28 Mar 2006 07:20:51 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 28 Mar 2006 07:20:40 -0000 Received: from mail152.ha.ovh.net (10.0.50.152) by mail152.ha.ovh.net with SMTP; 28 Mar 2006 07:20:38 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 28 Mar 2006 07:20:38 -0000 Received: from 47-176.0-85.cust.bluewin.ch (HELO ?192.168.1.38?) (webmaster@invader-universal.com@85.0.176.47) by ns0.ovh.net with SMTP; 28 Mar 2006 07:20:38 -0000 Message-ID: <4428E3BF.10701@invader-universal.com> Date: Tue, 28 Mar 2006 09:20:31 +0200 From: "webmaster@invader-universal.com" User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Remote: 85.0.176.47 (47-176.0-85.cust.bluewin.ch) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] This rewrite rule don't work - in htaccess (mod_rewrite) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, In my forum, I have a .htaccess file. I want to add a variable in this case : "showtopic" OR ("showtopic" AND "st") variables are present, I add this variable : "rfurl=original in the" URL. Exemple : http://www.my-domain.com/index.php?showtopic=22954 -------> (redirect to) http://www.my-domain.com/index.php?showtopic=22954&rfurl=original http://www.my-domain.com/index.php?showtopic=22954&st=90 -------> (redirect to) http://www.my-domain.com/index.php?showtopic=22954&st=90&rfurl=original But if there is also others variables, I don't add the new variable. Exemple : http://www.my-domain.com/index.php?showtopic=22954&view=getlastpost http://www.my-domain.com/index.php?showtopic=22954&pid=457390&st=300& http://www.my-domain.com/index.php?showtopic=22954&view=getnewpost http://www.my-domain.com/index.php?showtopic=22954&hl=blouclage I do nothing ! (don't redirect) I have this rule in my .htaccess file (in my forum directory) RewriteCond %{QUERY_STRING} showtopic RewriteCond %{QUERY_STRING} !rfurl RewriteCond %{QUERY_STRING} !view RewriteCond %{QUERY_STRING} !gopid RewriteCond %{QUERY_STRING} !showforum RewriteCond %{QUERY_STRING} !pid RewriteCond %{QUERY_STRING} !hl RewriteRule index\.php index.php?rfurl=original[QSA,L,R] But when I use this rule for exemple : http://www.my-domain.com/index.php?showtopic=showtopic=61095 It don't redirect to : http://www.my-domain.com/index.php?showtopic=showtopic=61095&rfurl=original Because it says : "initial URL equal rewritten URL" Look my log file : 559575:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (3) [per-dir /home/my-domain/public_html/forum/] applying pattern 'index\.php' to uri 'index.php' 559576:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='' pattern='!lofiversion' => matched 559577:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='/forum/index.php' pattern='!lofiversion' => matched 559578:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='showtopic' => matched 559579:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='!rfurl' => matched 559580:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='!view' => matched 559581:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='!gopid' => matched 559582:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='!showforum' => matched 559583:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='!pid' => matched 559584:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (4) RewriteCond: input='showtopic=61095' pattern='!hl' => matched 559585:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (2) [per-dir /home/my-domain/public_html/forum/] rewrite index.php -> index.php?rfurl=original[QSA,L,R] 559586:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (3) split uri=index.php?rfurl=original[QSA,L,R] -> uri=index.php, args=rfurl=original[QSA,L,R] 559587:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (3) [per-dir /home/my-domain/public_html/forum/] add per-dir prefix: index.php -> /home/my-domain/public_html/forum/index.php 559588:MY-IP - - [27/Mar/2006:02:31:43 --0600] [www.my-domain.com/sid#a067028][rid#a296fc8/initial] (1) [per-dir /home/my-domain/public_html/forum/] initial URL equal rewritten URL: /home/my-domain/public_html/forum/index.php [IGNORING REWRITE] Have you an idea ? Best regards IU --------------------------------------------------------------------- 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