incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Klein <st.fankl...@googlemail.com>
Subject Re: Problem getting simple rewrite rule to work
Date Fri, 19 Nov 2010 17:40:37 GMT
Am 19.11.2010 17:06, schrieb Timothy Wood:
> Oops!
>
> I just noticed that on my first two tries, one of the keys in the rewrite was "from:"
instead of "from".  Fixing that and using a rewrites.js of:
>
> 	[
> 		{
> 			"from": "",
> 			"to": "index.html",
> 			"method": "GET"
> 		}
> 	]
>
> still doesn't work (with or without the extra 'method' key), sadly.
I think you have to use:[

  {
    "from": "/",
    "to": "index.html",
    "method": "GET"
  }
]

since rewrites are relativ to ".../_rewrites" and not ".../_rewrites/"

There is an example in the "What's New in CouchDB 0.11 & 1.0" webcast 
http://www.youtube.com/watch?v=4jtBQf41Ppc#t=11m30s

regards,
Stefan

Mime
View raw message