Lighty redirect all domain.com requests to www.domain.com

$HTTP["host"] =~ "^(.*)" {
  url.redirect = (
    "^/(.*)" => "http://www.%1/$1",
  )
}

Related Posts

??Redirect domain.com requests to www.domain.com
?????
??My lighttpd php-fastcgi config with it's own php.ini
?????
??Automatic sub-domains with lighttpd mapping to a specific folder
?????
??Typo under lighttpd
?????
??Lighttpd proxy with Tracd specific example
?????