Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 65414 invoked from network); 18 Jan 2011 12:23:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 12:23:24 -0000 Received: (qmail 18455 invoked by uid 500); 18 Jan 2011 12:23:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 18031 invoked by uid 500); 18 Jan 2011 12:23:19 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 18018 invoked by uid 99); 18 Jan 2011 12:23:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 12:23:17 +0000 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ido.ran@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 12:23:12 +0000 Received: by iwn37 with SMTP id 37so6091836iwn.11 for ; Tue, 18 Jan 2011 04:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=vUNJiwbZK8J2EXoW7TzlGCGjFc0kGlk9eePGUMItxWc=; b=dOmTlrTpbcIVadmdZDSiN5QTUvG1r0cR7eVorQkYfpX2aBI2BCwN1BDFgXAmEHoWqW s6NsndgbYVV1EDw/LJPgU/ce9+j7+OeRBS92LKVlQkL2vahC6kqQETnMB9iFeX84UQ7y pYDxf3tmaH+xZqYFgwC/RO6/hobV7M4AWPztg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=kBADfKnatNjr0cZQjYVy3GeEJhEV3JbnVNn+/l8BkilnDVpgKPhTMUZUB6gfIS9SxU fd8d9WC8Mv3Vk0iZ0YvtytjzBuJmtP3v4TOef08t9UzycAsKue8jaGoI1aAQOgRrNplq VcFFw+KmOCzbKtVRp5JreGjA2R3MHy2/6DR+4= Received: by 10.231.174.71 with SMTP id s7mr5918127ibz.56.1295353370822; Tue, 18 Jan 2011 04:22:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.118.100 with HTTP; Tue, 18 Jan 2011 04:22:30 -0800 (PST) In-Reply-To: References: From: Ido Ran Date: Tue, 18 Jan 2011 14:22:30 +0200 Message-ID: Subject: Re: What is the semicolon means in rewrite rule To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016363b903e86c66b049a1df5ec X-Virus-Checked: Checked by ClamAV on apache.org --0016363b903e86c66b049a1df5ec Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable sorry - my mistake. Anyway the : means a variable that can be later use in to and query field, right? Thank you, Ido. On Mon, Jan 17, 2011 at 2:06 PM, Stefan Matheis < matheis.stefan@googlemail.com> wrote: > Ido, > > : is no semicolon .. it's a colon (or maybe double dot) > ; is a semicolon > > Stefan > > On Mon, Jan 17, 2011 at 12:53 PM, Ido Ran wrote: > > > So any part of the url that start with semicolon is like a "variable" > that > > can be used in "to" and "query" parts, right? > > > > So is there a difference between > > "from": ":db" and "from": "" > > > > Thank you, > > Ido. > > > > > > On Sat, Jan 15, 2011 at 3:46 PM, Janez =C5=A0tupar > >wrote: > > > > > There is no semicolon in the rewrite rule, > > > > > > but if you think colon in ":db" - that stands for named pattern, whic= h > > can > > > be used as a variable - you can read more about it here: > > > http://wiki.apache.org/couchdb/Rewriting_urls , > > > > > > > > > http://blog.couchone.com/post/443028592/whats-new-in-apache-couchdb-0-11-= part-one-nice-urlsand > > > http://caolanmcmahon.com/on_designs_undocumented.html > > > > > > @Benoit - maybe you could point us towards where the rewrites are > > > implemented - Id gladly help out with documenting its behavior if you > > would > > > be willing to guide me where to find the information. > > > > > > Regards, > > > > > > > > > On Sat, Jan 15, 2011 at 12:21 PM, Ido Ran wrote: > > > > > > > rewrites config: [ { "to": "../..", "from": ":db" } ] > > > > > > > > Thanks, > > > > Ido. > > > > > > > > > > --0016363b903e86c66b049a1df5ec--