Skip to content

Instantly share code, notes, and snippets.

@ahmednuaman
Created December 12, 2010 21:52
Show Gist options
  • Save ahmednuaman/738370 to your computer and use it in GitHub Desktop.
Save ahmednuaman/738370 to your computer and use it in GitHub Desktop.
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"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment