Last active
April 26, 2023 10:14
-
-
Save LeBenLeBen/4ded730633c1e996d7f8e98e5784ab6a to your computer and use it in GitHub Desktop.
Nginx rewrite rules for WordPress multisite
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
# WordPress multisite rewrite for subfolder install | |
rewrite ^/(xmlrpc\.php|wp-[0-9a-z-]+\.php) /wordpress/$1; | |
rewrite ^/(wp-(admin|includes).*) /wordpress/$1; | |
# Rewrite assets that lives in /content but has wrong URLs (YooTheme/Widgetkit) | |
rewrite ^(?!\/content)(?:.*)content[^.](.*) $scheme://$host/content/$1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment