couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Boermans <boerm...@gmail.com>
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 <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>"
}


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