I would like redirect addresses that start with:
en.example.com/somefile.php
to:
example.com/somefile.php?language=en
Using mod_rewrite module in lighttpd. Until now I got this:
$HTTP["host"] =~ "^en\.(.*)\.com$" {
url.rewrite-once = (
"^/(.*)"
=>
"/$1?language=en"
)
}
But this does not seem to be working. What to do to make this work?