Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 27792 invoked from network); 14 Mar 2009 12:04:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2009 12:04:47 -0000 Received: (qmail 34151 invoked by uid 500); 14 Mar 2009 12:04:43 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 34139 invoked by uid 500); 14 Mar 2009 12:04:43 -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 34125 invoked by uid 99); 14 Mar 2009 12:04:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 05:04:43 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=FU_COMMON_SUBS2,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.64.195.221] (HELO m-02.th.seeweb.it) (217.64.195.221) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 12:04:34 +0000 Received: from [127.0.0.1] (host179-81-static.36-88-b.business.telecomitalia.it [88.36.81.179]) (authenticated bits=0) by m-02.th.seeweb.it (8.13.8/8.13.8/Debian-3) with ESMTP id n2EC4Bdd010372 for ; Sat, 14 Mar 2009 13:04:11 +0100 Message-ID: <49BB9D36.9050404@puntualmenteinritardo.com> Date: Sat, 14 Mar 2009 13:04:06 +0100 From: Andrea Visinoni Reply-To: andrea@puntualmenteinritardo.com User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@httpd.apache.org References: <49B9866E.8080601@puntualmenteinritardo.com> <1404e5910903131132n545da1d5x938cfe9e422a3933@mail.gmail.com> In-Reply-To: <1404e5910903131132n545da1d5x938cfe9e422a3933@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite help Eric Covener ha scritto: > On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni > wrote: >> Hi there, >> i need to implement url rewrite on a website and i need to obtain something >> like that: >> >> http://site.com/a/ -> index.php?1=a >> http://site.com/a/b/ -> index.php?1=a&2=b >> http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c > > There is no real "cleaner" way than the example here: > > http://wiki.apache.org/httpd/RewritePathInfo > Well i assume that there is no way to have infinite subdirs (/a/b/c/d/...) with a single RewriteRule, maybe the cleaner way is to get all the subdirs as a single parameter and tokenize in PHP. Thank you for the great link. Andrea --------------------------------------------------------------------- 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