Lighttpd install API input issue

Ok, so to install emoncms using lighttpd, I had to add some rewrite rules as laid out in this thread. They were;

url.rewrite-if-not-file = (
"^/emoncms/([^?])?(.)$" => “/emoncms/index.php?q=$1”,
"^/emoncms/([^?])$" => “/emoncms/index.php?q=$1”,
"^/emoncms/([^?])(?(.+))?$" => “/emoncms/index.php?q=$1”
)

I am fairly sure that this is the issue with the API input but I am not sure what to rewrite the URI to. Is it simply passed through complete on Apache installations?

I have written this regex…

"^/emoncms/input/[^?]+\?[^?]+$" => "$0"

which matches any URI with input and a ? and passes it through unchanged but I get a 404 off that.

I really need to know what emoncms expects the Input API URI to look like when it gets it!