Created
July 11, 2023 12:48
-
-
Save ochoarobert1/1a993cbccc750a92a7f5aa1475053963 to your computer and use it in GitHub Desktop.
WordPress Multisite .htaccess bug on Nginx
This file contains 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
# MULTISITE CONFIGURATION | |
if ( $uri ~ "files" ) { | |
rewrite ^/(?:.*/)?files/(.+) /wp-includes/ms-files.php?file=$1; | |
} | |
if (!-e $request_filename) { | |
rewrite ^/[_0-9a-zA-Z-]+(/wp-(content|admin|includes).*) $1 break; | |
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment