library

technical documents

All > faqs

wordpress mu lighttpd rewrite

Posted by: Dan on November 19, 2007 4:36:05 PM
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: 13 Feb 08 15:59