How to config OpenCart working on lighttpd with mod_rewrite

$HTTP["host"] =~ "^(www.)?domain.com" {
server.document-root = "/home/public_html/htdocs/"
url.rewrite-final = ( "^/(admin)/(.*)" => "$0" )
url.rewrite-once = ( "^/$" => "/index.php?route=common/home" )
url.rewrite-if-not-file = ( "^/([^?]*)(?:?(.*))?$" => "/index.php?_route_=$1&$2
url.access-deny = ( ".tpl", ".ini", ".log" )
server.error-handler-404 = "/index.php?route=error/not_found"
index-file.names = ( "index.php" )
}