An existing WordPress network was detected. Can’t get multisite to work
-
Hi all, my website used to work fine but had to move to another hosting company, and now I cannot get multisite to work. My database has transfered well and I see the wp and wp_2 tables. The wp is visible when you open the website, but I would like to have wp_2 as a subsite.
I do everything that I’m supposed to do. First of all, on the top of “install network” in the WordPress dashboard it says: Warning: An existing WordPress network was detected. This is probably because I transfered the site to a new server.
Then I do the following:
1.Add the following to your wp-config.php file above the line reading /* That’s all, stop editing! Happy publishing. */:
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, false );
define( ‘DOMAIN_CURRENT_SITE’, ‘https://lentheman.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );2. Add the following to your .htaccess file, replacing other WordPress rules:
RewriRewriteEngine 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]Every time i enter these lines of code my site breaks. It either says “database error” or the whole URL gets screwed up with multiple https://https in the name.
I have tried countless tutorials. Maybe I’m missing something. Happy to give an expert access to my files as I just want it fixed. Any help is greatly appreciated. Thanks in advance!
The topic ‘An existing WordPress network was detected. Can’t get multisite to work’ is closed to new replies.