Last active
June 21, 2022 11:38
-
-
Save sftsk/725827262ed52a6a129c3ec4ef9e121e to your computer and use it in GitHub Desktop.
fix nginx multisite redirect loop using roots/bedrock
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
if (!-e $request_filename) { | |
rewrite /wp-admin$ $scheme://$host$uri/ permanent; | |
rewrite ^(/[^/]+)?(/wp-.*) /wp$2 last; | |
rewrite ^(/[^/]+)?(/.*\.php) /wp$2 last; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment