If you need set mod_rewrite in your server and have lot wordpress on 1 domain, you need edit lighttpd.conf and add
$HTTP["host"] =~ "domain\.com" {
server.error-handler-404 = "/index.php?error=404"
}
$HTTP["url"] =~ "^/blog1($|/)" {
server.error-handler-404 = "/blog1/index.php?error=404"
}
$HTTP["url"] =~ "^/blog2($|/)" {
server.error-handler-404 = "/blog2/index.php?error=404"
}
and then reboot your lighttpd.
this rule is for 404 handler…