Skip to content

Instantly share code, notes, and snippets.

@tomhermann
Created February 24, 2012 02:36
Show Gist options
  • Save tomhermann/1896798 to your computer and use it in GitHub Desktop.
Save tomhermann/1896798 to your computer and use it in GitHub Desktop.
lighttpd 301 redirect for a domain
$HTTP["host"] =~ "^source\.com$" {
url.redirect = ( "^/(.*)" => "http://dest.com/$1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment