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