I'm trying to send any request to the index.html with lighttpd in order to prevent 404 but I'm not smart enough because either the redirect matches itself or, for calls to subdirs, although the index.html gets served, it is not served from document root so all the paths are off and thus no images are shown.
$HTTP["host"] == "my.example.com" {
server.document-root = "/var/www/my/html/"
# url.rewrite-once = ( "^/([^\./]+)/?([^\./]+)?(/|\.html)?$" => "/index.php?a=$1&b=$2" )
# url.rewrite-once = ( "^.+?" => "/" )
# url.redirect = ( ".*" => "http://my.example.com/index.html" ) # too many redirects
}