Re: What is the semicolon means in rewrite rule

2011-01-18 Thread Benoit Chesneau
On Tue, Jan 18, 2011 at 1:22 PM, Ido Ran wrote: > sorry - my mistake. > > Anyway the : means a variable that can be later use in to and query field, > right? > > Thank you, > Ido. correct :) - benoît

Re: What is the semicolon means in rewrite rule

2011-01-18 Thread Ido Ran
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.ste...@googlemail.com> wrote: > Ido, > > : is no semicolon .. it's a colon (or maybe double dot) > ; is a semicolon > >

Re: What is the semicolon means in rewrite rule

2011-01-17 Thread Stefan Matheis
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 betwee

Re: What is the semicolon means in rewrite rule

2011-01-17 Thread Ido Ran
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 Štupar wrote: > There is no semicolon in the rewrite rul

Re: What is the semicolon means in rewrite rule

2011-01-16 Thread Filipe David Manana
Janez, all the rewriter code is in src/couchdb/couch_httpd_rewrite.erl afaik. On Sat, Jan 15, 2011 at 1:46 PM, Janez Štupar wrote: > There is no semicolon in the rewrite rule, > > but if you think colon in ":db" - that stands for named pattern, which can > be used as a variable - you can read mor

Re: What is the semicolon means in rewrite rule

2011-01-15 Thread Janez Štupar
There is no semicolon in the rewrite rule, but if you think colon in ":db" - that stands for named pattern, which 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-pa

What is the semicolon means in rewrite rule

2011-01-15 Thread Ido Ran
rewrites config: [ { "to": "../..", "from": ":db" } ] Thanks, Ido.