- Open wp-config.php
add above That’s all, stop editing! Happy blogging
/* Multisite */ define( 'WP_ALLOW_MULTISITE', true );
it asks you deactivate plugins
2. Configure Your Network Structure
SUb domain or sub direcotry
Sub direcoty preferable
Sub-domain Installation | Because your installation is not new, the sites in your WordPress network must use sub-domains. The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links. |
---|
By default it will add to sub-domain if you want subdirectory add
How to Force Multi Site to Use Subdirectories
edit wp-config.php
add
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘ALLOW_SUBDIRECTORY_INSTALL’, true);
the code forceto use sub directories after installation you may remove the this “define(‘ALLOW_SUBDIRECTORY_INSTALL’, true);”
below code.
above That’s all, stop editing! Happy blogging
After installation click below code will be generated and database tables will be created.
for wp-config.php
Network configuration rules for wp-config.php (you may remove previous line allow wp multisite)
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, false );
define( ‘DOMAIN_CURRENT_SITE’, ‘bikebecho.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
Network configuration rules for .htaccess
for apache server only
replace old htaccess to with new but some rules maybe added by plugins cahcing security etc make sure to readd them
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Create sites
go to network and crete sites.
start using wordpress multsites, you can also multi domains,,
Reactive plugins
Troubleshooting
Error establishing a database connection
Database tables are missing. This means that your host’s database server is not running, WordPress was not installed properly, or someone deleted wp_site
Check wp-config php table prefix
becuase network not installed.
Re add network info in wp-config php