how do I configure nginx for wordpress multisite

When I set the “/wp/” in PATH_CURRENT_SITE and call the network setting page(, it occurs too many redirects. But when I just set “/” in the PATH_CURRENT_SITE and I go to network setting page from wordpress admin management page, it calls “”.Then, I change the url like “” manually, it works well. Does my nginx configuration wrong?

This is my nginx conf file.

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

location / {
 try_files $uri $uri/ /index.php?$query_string;

This is my wp-config file.

define('WP_DEBUG', BST_DEBUG);
define ('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('PATH_CURRENT_SITE', '/wp/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Read more here: how do I configure nginx for wordpress multisite

Leave a Reply

Your email address will not be published. Required fields are marked *