nginx – Network admin pointing to root as opposed to subdirectory
-
Using nginx, I’ve installed WordPress to /blogs and enabled network sites.
All my main site links point to example.com/blogs, but when I go to network admin the links point to https://www.example.com/wp-admin/network/ instead of https://www.example.com/blogs/wp-admin/network/
Here’s the multisite section in my config:
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); $base = '/blogs'; define('DOMAIN_CURRENT_SITE', 'www.example.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
If I tried changing PATH_CURRENT_SITE to /blogs, I’d get a db connection error.
Thanks.
- The topic ‘nginx – Network admin pointing to root as opposed to subdirectory’ is closed to new replies.