[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lighttpd redirect rules



On Seg, 19 Jul 2010, V wrote:
Making them static is bad.

The Apache .htaccess is as follow, can you translate them to lighttpd?

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.example\.com
RewriteRule ^(.*) http://www.example.com/pages/page.php?u=%1 [R=301,L]

You really don't want to do your homework, do you?

The page mentioned, while not very detailed, has examples that show how such things can be done. The second example, in particular, is the closest to what you need: it redirects any domain.

--
Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: