Archive

Posts Tagged ‘Lighttpd’

Redirection avec Lighttpd

May 4th, 2010 JaCe No comments

Récemment j’ai voulu pour les besoin d’un site webs rediriger automatiquement http://domaine.com/ vers http://www.domaine.com/

Pour cela il faut dans un premier temps ajouter le module mod_redirect à Lighttpd (/etc/lighttpd/lighttpd.conf):

server.modules = ( “mod_redirect” )

Puis de même pour le nom de domaine concerné rajouter:

$HTTP["host"] =~ “^domaine.com$” {
url.redirect = ( “^/(.*)” => “http://www.domaine.com/$1″ )
}

Categories: Lighttpd Tags: