incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: workaround for url rewrite formatting
Date Tue, 07 Jun 2011 13:03:34 GMT
On Tue, Jun 7, 2011 at 2:53 PM, Oliver Boermans <boermans@gmail.com> wrote:
> On 07/06/2011, at 5:27 AM, Gary Thomas <7zark7@gmail.com> wrote:
>
>> Thanks, is there a description somewhere of what  "More flexible URL rewriter" means
in the release notes?
>
> There is a brief description near the bottom of this page
> http://docs.couchbase.org/couchdb-release-1.1/index.html
>
> More flexible URL rewriter
>
> Prior to CouchDB 1.1 the rewriter could only collect variable information delimited by
forward slashes. URL's like /:year/:month/:day was possible, but not /:year-:month-:day. The
improved URL Rewriter in CouchDB 1.1 now supports variables within a path, so the earlier
URL is now possible written as /<year>-<month>-<day>. The same format is
used with the "to" and "from" portions of a rewrite rule, so the above example would look
something like this (if documents were delimited with colons rather than dashes):
>
> {
>    "from":"/<year>-<month>-<day>",
>    "to": "_show/calendar/<year>:<month>:<day>"
> }
>
>

I don't remember to have written that.

- benoît

Mime
View raw message