Hello everyone,
here's some basic apache htaccess code which I want to re-write for
lighttpd. But, apparently I cannot figure it out, so I though someone
would help ;)
htaccess code is looks like this:
RewriteEngine on
RewriteRule main.css main.php
so basically I want to re-write main.css to main.php which is in styles
folder (mydomain.com/styles/main.php)
but when I put this code into lighttpd config file it doesn't work.
$HTTP["host"] =~ "mydomain.com" {
var.app = "blahblah"
accesslog.filename = base + "/logs/" + app + ".access.log"
server.errorlog = base + "/logs/" + app + ".error.log"
load php app
url.rewrite-once = (
"^/styles/main.css" => "styles/main.php"
)
}
Thanks in advance
on 17.12.2007 17:07
on 17.12.2007 19:20
Lukas wrote: > Hello everyone, > here's some basic apache htaccess code which I want to re-write for > lighttpd. But, apparently I cannot figure it out, so I though someone > would help ;) > > htaccess code is looks like this: > RewriteEngine on > RewriteRule main.css main.php > > so basically I want to re-write main.css to main.php which is in styles > folder (mydomain.com/styles/main.php) > but when I put this code into lighttpd config file it doesn't work. > > $HTTP["host"] =~ "mydomain.com" { > var.app = "blahblah" > accesslog.filename = base + "/logs/" + app + ".access.log" > server.errorlog = base + "/logs/" + app + ".error.log" > load php app > url.rewrite-once = ( > "^/styles/main.css" => "styles/main.php" > ) > } > > Thanks in advance Ok, I somehow figured it out by myself: $HTTP["host"] =~ "mydomain.com" { url.rewrite-once = ( "^/styles/main.css" => "/styles/main.php" ) }

