Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created December 8, 2019 16:43
Show Gist options
  • Save RhythmShahriar/02195b97803afab2ab1389c84389deca to your computer and use it in GitHub Desktop.
Save RhythmShahriar/02195b97803afab2ab1389c84389deca to your computer and use it in GitHub Desktop.
Nginx Config WordPress Multisite
#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