I’m using multi-site subdomain with domain mapping and trying to get things working locally with a vagrant box running debian wheezy and nginx 1.4.5. This is my first time using multi-site.
I had the site working fine at wordpress.dev
after my 5 minute install…Simply changed the site URL under general settings and left the wordpress URL as wordpress.dev/wp
Things got weird after enabling multi-site subdomain.
Here’s my config
// ==================
//SETUP MULTISITE?
// UNCOMMENT BELOW
// ==================
define('WP_ALLOW_MULTISITE', true);
// ====================
// SETUP MULTISITE
// ====================
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
$base = '/';
define('DOMAIN_CURRENT_SITE', 'wordpress.dev');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
First, my network admin panel returned 404. I had to edit line 2255 in link-template.php. My network admin was bringing me to /wp-admin/network instead of /wp/wp-admin/network
$url = network_site_url('wp/wp-admin/network/', $scheme);
Ok that solves that.
But after setting up domain mapping my first sub-domain site thinks all its resources are located in the “default” directory ./wp-content instead of skeleton’s /content
Not sure if this caused the problem but I just noticed my local-config.php didn’t have the snippet with the ABSPATH in it when I did the original install.
// ===================
// Bootstrap WordPress
// ===================
// if ( !defined( 'ABSPATH' ) )
// define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );
// require_once( ABSPATH . 'wp-settings.php' );
// =====================
Will start over and try again.
In the mean time this seems to be a recurring issue.
https://core.trac.www.ads-software.com/ticket/23221
https://core.trac.www.ads-software.com/ticket/19796
https://github.com/markjaquith/WordPress-Skeleton/issues/39