Wordpress network admin pointing to root as opposed to subdirectory

Posted by Ian on Server Fault See other posts from Server Fault or by Ian
Published on 2012-09-04T20:43:40Z Indexed on 2012/09/04 21:40 UTC
Read the original article Hit count: 231

Filed under:
|

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.

© Server Fault or respective owner

Related posts about nginx

Related posts about Wordpress