주제: Problem with .htaccess and lighttpd
Hello.
I know. This is not forum for user frm other countries but I have question about rewrite rules for Ligghtpd server. I want to have rules to make URLs like /blogname/owner etc. Ive made something like this:
$HTTP["remoteip"] == "127.0.0.2" {
server.document-root = "/var/www/tc/"
url.rewrite-once = (
"^(thumbnail)/([0-9]+/.+)$" => "cache/$1/$2",
"^(cache)+/+(.+[^/])\.(cache|xml|txt|log)$" => "$0",
"^(.*[^/])$" => "$1/",
"^(.*)$" => "rewrite.php"
)
}It works only when adress looks like http://127.0.0.2/grom/owner/ but dont work if I have URL like http://127.0.0.2/grom/owner so as I think problem is with "^(.*[^/])$" => "$1/" but how to correct that? Any suggestions? Any advice? If someone knows how to resolve that then please tell me ;P
Best regards, Grom.