I want to turn this Lighttpd mod_rewrite to apache rewrite code.
$HTTP["host"] =~ "^(i\.ylar\.se|puush\.me)$" {
server.document-root = "/var/www/servers/i.ylar.se/"
url.rewrite-once = (
"^/api/up" => "/upload.php",
"^/([a-zA-Z0-9]+)$" => "/view.php?image=$1"
)
}
Thanks for helping!