library

technical documents

wordpress mu lighttpd rewrite

Posted by: Dan on November 19, 2007 04:36:05 PM +00:00
probably a case for mod_magnet, but when mod_rewrite is all you got

Try the following in your lighttpd.conf, probably inside of an appropriate host conditional:

url.rewrite-once = (
"^/(.*)?/?files/$" => "index.php",
"^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2",
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2",
"^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2",
"." => "index.php"
)
Updated: 05 Apr 10 07:26