by danang.wijanarko@gmail.com
If you deciding to move the mod-rewrite regex pattern matching from Apache to Lighttpd, you will find that Gallery2 have a persistent mind to refuse it :))
You will find that getting this one line of regex pattern matching below is gonna takes some really your time, well in my case is me :P. I spent really some time digging apache and lighttpd log, reading the result, and changing the pattern as i don't realy know exactly the result of the correct result. But at last this line, just this simple line, few words, not too much. Ugh ... it's regex as always. Yes it is regex.
It is:
"^/v/([^?]+)(\?|\ )?(.*)$" => "/index.php?q=gallery&g2_view=core.ShowItem&g2_path=$1&$3"