Skip to content

Instantly share code, notes, and snippets.

@AndiDittrich
Created September 12, 2020 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndiDittrich/3166ca1f276a44eb901fb74fd1b1ce04 to your computer and use it in GitHub Desktop.
Save AndiDittrich/3166ca1f276a44eb901fb74fd1b1ce04 to your computer and use it in GitHub Desktop.
WordPress multisite lighttpd mod_rewrite rules
# MU rewrites
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