Created
September 12, 2020 09:39
-
-
Save AndiDittrich/3166ca1f276a44eb901fb74fd1b1ce04 to your computer and use it in GitHub Desktop.
WordPress multisite lighttpd mod_rewrite rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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