Created
December 8, 2019 16:43
-
-
Save RhythmShahriar/02195b97803afab2ab1389c84389deca to your computer and use it in GitHub Desktop.
Nginx Config WordPress Multisite
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
#enable subdir multisite | |
#if (!-e $request_filename) { | |
# rewrite ^(/[^/]+/wp-admin)$ $scheme://$host$1/ redirect; | |
# rewrite ^(/[^/]+)?(/wp-.*) $2 last; | |
# rewrite ^(/[^/]+)?(/.*\.php) $2 last; | |
#} | |
#enabled subdir multisite media files | |
#rewrite ^(/[^/]+/)?files/(.+) /wp-includes/ms-files.php?file=$2; | |
#enabled subdomain multisite | |
#location ~ ^/files/(.+)$ { | |
# try_files /.disabled-msfiles /wp-includes/ms-files.php?file=$1; | |
#} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment