couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Boermans <>
Subject Re: workaround for url rewrite formatting
Date Tue, 07 Jun 2011 12:53:42 GMT
On 07/06/2011, at 5:27 AM, Gary Thomas <> 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

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):

    "to": "_show/calendar/<year>:<month>:<day>"

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message