UNBRANDED MANCHESTER_

WP Config Amends

In order to make a WordPress multisite setup work from a subdirectory instead of subdomain do the following:

 

/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);

define(‘DOMAIN_CURRENT_SITE’, ‘www.domain.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

SQL Amends

Table : wp_blogs
Change all domains to the same base domain
Change path to match subdirectory with / either site of the directory name — i.e. /subdirectory/

Table: wp_2_options (the number will change for each site)
siteurl -> Base URL
home -> Base URL /subdirectory

 

Back to Digital Guides