Permanent redirect (301) with lighttpd

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 CharlyBr, posted on June 30, 2008 at 11:47 pm, filed under http and tagged . Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Timeline

2 Comments

Have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

:

: