aaugustj
Member
Posted 18 years ago #
Hi everyone,
I'm trying to run WPMU on a Lighttpd server (using sub-directories, not sub-domains). The site will not work without the correct rewrite rules (a poor design decision in my opinion). I know the rewrite rules need to be embedded in lighttpd.conf, but I don't think all of the apache2 rules have lighttpd equivalents. How have people gotten this to work?
aaugustj
Member
Posted 18 years ago #
Now that I've been totally stonewalled by this problem, I'm throwing in the towel and resorting to offering a $25 reward on Google Answers - any takers? http://google.com/answers/threadview?id=765146
http://twiki.org/cgi-bin/view/Codev/TWikiOnLighttpd might be useful - or you might want to contact the author of that code
I have no idea whether the problem he was solving is of a similar complexity to yours, but its worth a go.
Try this:
$HTTP["host"] =~ "^www\.(.*)$" {
url.redirect = ("^/(.*)" => "http://%1/$1")
url.rewrite-once = ("^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", "^/([_0-9a-zA-Z-]+/)?(w
p-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2", "." => "index.php")
}
It works..
Correct to below:
$HTTP["host"] =~ "^www\.(.*)$" {
url.redirect = ("^/(.*)" => "http://%1/$1")
url.rewrite-once = ("^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1", "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2", "." => "index.php")
}
Try it by yourself.
Got it to work without url.rewrite by using mod_magnet and this LUA script: wpmu.lua. More info on my blog.
Please test and report success. I've been testing it just a cople of days and am new to WordPress, so I may be wrong.