Skip to content

Instantly share code, notes, and snippets.

View AndiDittrich's full-sized avatar
following the white rabbit

Andi Dittrich AndiDittrich

following the white rabbit
View GitHub Profile
@ahmednuaman
ahmednuaman / wordpress-multisite-lighttpd.conf
Created December 12, 2010 21:52
A nice little rewrite directive for WordPress Multi-site and Lighttpd
url.rewrite-once = (
"^/(.*/)?files/$" => "/index.php",
"^/(.*/)?files/(.*)" => "/wp-content/blogs.php?file=$2",
"^(/wp-admin/.*)" => "$1",
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "/$2",
"^/([_0-9a-zA-Z-]+/)?(.*\.php)" => "/$2",
"^/(.*)/?$" => "/index.php"
)