If you want to redirect visitors that access your website without the ‘www’, you can use mod_redirect with the following syntax:
$HTTP[”host”] =~ “^lescampeurs\.org” {
url.redirect = (
”^/(.*)$” => “http://www.lescampeurs.org/$1″
)
}
Links:
This entry was written by , posted on June 30, 2008 at 11:47 pm, filed under http and tagged lighttpd. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
Thanks for the tips,
just to notice, if you like more redirection you need to use +=
example:
$HTTP[”host”] =~ “^lescampeurs\.org” {
url.redirect = (
”^/(.*)$” => “http://www.lescampeurs.org/$1″
)
url.redirect += (
”/oldpage/shall/301/redirect” => “http://www.lescampeurs.org/newpage″
)
}
Thanks for this one, didn’t know it