Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 60963 invoked from network); 3 Apr 2009 15:53:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 15:53:28 -0000 Received: (qmail 31619 invoked by uid 500); 3 Apr 2009 15:53:25 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 31598 invoked by uid 500); 3 Apr 2009 15:53:25 -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 31589 invoked by uid 99); 3 Apr 2009 15:53:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 15:53:25 +0000 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 clodoaldo.pinto@gmail.com designates 209.85.219.162 as permitted sender) Received: from [209.85.219.162] (HELO mail-ew0-f162.google.com) (209.85.219.162) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 15:53:19 +0000 Received: by ewy6 with SMTP id 6so1001782ewy.24 for ; Fri, 03 Apr 2009 08:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=fZaIxACq7xHcImWrREzZ546dc0FFgCoqhrPWt8eW2JA=; b=ASa6w3etOiABnGAjTd9Ma4vLTJpXHF8yqvIHzhkk7Q6C/1H8UR8rPkuCrp2uj5rB7F HPEUpf7d4KdEGWe64zkKrUWndvhMCxo1LemNU9lVA2EXDHvc8v+HWI2dizAbJVkdDOs6 tj00FiNUIBdufm8ryE7pMvwYUs8XNMg9CFzQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type:content-transfer-encoding; b=pBjKHcoE5RSMpxgS/r2BvK1pj7YfZlFOATS+ZxYwc/Lg6T2qQP76rG02sW62hdoWin v0Bl+7TO6XnwaJJOPP9IYWGjuOGSM3DuEHoaUuspgxLqIf+JFD3n8TvW06oZJ9UpUnfp FqW0tuzQM5h2pi776N7khGIbDTX8BJi/AExBc= MIME-Version: 1.0 Sender: clodoaldo.pinto@gmail.com Reply-To: clodoaldo.pinto.neto@gmail.com Received: by 10.210.133.2 with SMTP id g2mr622555ebd.34.1238773977421; Fri, 03 Apr 2009 08:52:57 -0700 (PDT) Date: Fri, 3 Apr 2009 12:52:57 -0300 X-Google-Sender-Auth: 2a1b0b7f4f61c09c Message-ID: From: Clodoaldo Pinto Neto To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Query string encoding I want to rewrite a url to a query string like this: from http://example.com/x+ to http://example.com/var=x%2B or from http://example.com/x%2B to http://example.com/var=x%2B Using: RewriteRule ^(/([\w-()+]+))?/$ /?var=$2 [QSA] The problem i have is that the query string is passed to the application unencoded so the "+" is understood by the application as space. How to reencode the query string before it is passed to the application? Rewrite log: 10.1.1.110 - - [03/Apr/2009:12:22:46 --0300] [example.com/sid#7fa25fb33bf0][rid#7fa25c0ea338/initial] (3) applying pattern '^(/([\w-()+]+))?/$' to uri '/x+/' 10.1.1.110 - - [03/Apr/2009:12:22:46 --0300] [example.com/sid#7fa25fb33bf0][rid#7fa25c0ea338/initial] (2) rewrite '/x+/' -> '/?var=x+' Regards, Clodoaldo --------------------------------------------------------------------- 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