Puddinq.com sharing knowledge

WordPress nginx multisite

WordPress nginx multisite

if (!-e $request_filename) {
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
    rewrite ^(/[^/]+)?(/wp-.*) /wp/$2 last;
    rewrite ^(/[^/]+)?(/.*\.php) /wp/$2 last;
}