The MU forums have moved to WordPress.org

WPMU .htaccess for Lighttpd (6 posts)

  1. aaugustj
    Member
    Posted 7 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?

  2. aaugustj
    Member
    Posted 7 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

  3. mrjcleaver
    Member
    Posted 7 years ago #

    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.

  4. zhchen543
    Member
    Posted 7 years ago #

    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..

  5. zhchen543
    Member
    Posted 7 years ago #

    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.

  6. Bisente
    Member
    Posted 7 years ago #

    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.

About this Topic