Wordpress network admin pointing to root as opposed to subdirectory
- by Ian
I've installed Wordpress on my nginx server in /blogs and new networks will be in /blogs/blogname.
All my main site links point to example.com/blogs, but when I go to network admin the links point to http://www.example.com/wp-admin/network/ instead of http://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 try changing PATH_CURRENT_SITE to /blogs, I get a db connection error.
Thanks.