ModernPress supports WordPress Multisite installations. Both subdomain and subdirectory installations may be used. For more information about WordPress Multisite, see the WordPress Codex.
To enable subdirectory multisite:
- Uncomment the line:
#vhosts: dev/lando/ms-subdirectory.confin.lando.local.ymlat the root of the project. - Uncomment or add the line
define( 'WP_ALLOW_MULTISITE', true );in yourlocal-config.phpfile. - Run
lando rebuild -yto apply the changes. - Login to WordPress and navigate to Tools > Network Setup.
- Follow the instructions to set up the network. Choose "Sub-directories" when prompted for the type of network.
- Uncomment or add the following lines in your
local-config.php:
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'DOMAIN_CURRENT_SITE', '<YOUR-PROJECT-NAME>.lndo.site' );To enable subdomain multisite:
- Uncomment the
proxysection in.lando.local.ymlat the root of the project. be sure to udpate the domain to match your project. - Uncomment or add the line
define( 'WP_ALLOW_MULTISITE', true );in yourlocal-config.phpfile. - Run
lando rebuild -yto apply the changes. - Login to WordPress and navigate to Tools > Network Setup.
- Follow the instructions to set up the network. Choose "Sub-domains" when prompted for the type of network.
- Uncomment or add the following lines in your
local-config.php:
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
define( 'DOMAIN_CURRENT_SITE', '<YOUR-PROJECT-NAME>.lndo.site' );