Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 24909 invoked from network); 31 Jan 2007 19:45:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 19:45:22 -0000 Received: (qmail 75195 invoked by uid 500); 31 Jan 2007 19:45:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74250 invoked by uid 500); 31 Jan 2007 19:45:16 -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 74238 invoked by uid 99); 31 Jan 2007 19:45:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 11:45:16 -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 ecentinela@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 11:45:06 -0800 Received: by nf-out-0910.google.com with SMTP id n28so592497nfc for ; Wed, 31 Jan 2007 11:44:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=EX5fq2qRHXlZqrdzyzOrLQtMd7Lnfe9BfA4JzREEih3lLdOMkLHwFVrelnaz4Rq9saJMMymZ+98zjw+4iu8em1GxpIRwc1HhDzfjN1vrgOjm39lQmukpPz68mtBWFfTD6AXsFD3ePQINcJxFC/6G39flXf9dASB6gy9sobmxMrQ= Received: by 10.48.162.15 with SMTP id k15mr3042128nfe.1170272681660; Wed, 31 Jan 2007 11:44:41 -0800 (PST) Received: from ?192.168.1.2? ( [89.129.84.122]) by mx.google.com with ESMTP id 13sm1413454ugb.2007.01.31.11.44.40; Wed, 31 Jan 2007 11:44:41 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <179B03E3-494C-4A12-A8B7-B2172EB1A771@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: users@httpd.apache.org From: =?ISO-8859-1?Q?Javier_Mart=EDnez_Fern=E1ndez?= Date: Wed, 31 Jan 2007 20:44:40 +0100 X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] RewriteRule I'm making a rewrite rule and I'm having problems with the "?" character My rule is this RewriteRule ^([a-z0-9-]+)/?([a-z0-9-]+)?/?([0-9]+)?\?([a-z0-9=]+)?$ index.php?controller=$1&action=$2&id=$3&$4 [NC,L] and the url I test is "http://localhost:8888/kmodo/something/more/1? mivar=5" It doesn't work, but I change the rule to RewriteRule ^([a-z0-9-]+)/?([a-z0-9-]+)?/?([0-9]+)?\\([a-z0-9=]+)?$ index.php?controller=$1&action=$2&id=$3&$4 [NC,L] and test the url with "http://localhost:8888/kmodo/something/more/1 \mivar=5" The rewrite is working (see the difference between \\ with \?). Someone can say me what I'm doing wrong? PD: regular expressions are my weak point :) --------------------------------------------------------------------- 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