Connect with us

How to Remove Multisite/Network Feature from WordPress website

coding

How to Remove Multisite/Network Feature from WordPress website

Generally people are looking to create network feature in WordPress instructions. I had one blog with multisite feature and recently I moved it to single site form multisite. Remove multisite feature, remove network feature of WordPress is easy with this article.

If you want to remove multisite feature, remove Network feature of WordPress than here are easy steps to get it done.

Note: Most Important is take a backup of your files and Database. All recommend this but I am not. Because I am sure once you follow below steps properly, it will work surely. If you dont have confidence on yourself than take a backup. :)
 
1. Open wp-config.php from your root directory.
Remove below code.
 
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'localhost' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
 
2. Delete your .htaccess from root directory and visit wp-admin/options-permalink.php. 
Don't worry. It will be auto generated once you visit above page.
 
3. Remove Extra fields from wp_user table and extra tables. Simple execute below sql query.
 
ALTER TABLE `wp_users` DROP `spam`, DROP `deleted`;
DROP TABLE
    `wp_blogs`,
    `wp_blog_versions`,
    `wp_registration_log`,
    `wp_signups`,
    `wp_site`,
    `wp_sitemeta`;
 
If you can find this table `wp_sitecategories` than DROP it.
 
4. Most Important. Put define('MULTISITE', false); line in wp-config.php file.
 
5. Yuppi! You are now in default single site WordPress Installation.

You may get below errors if you did not follow steps properly. If you get one of the below error, please make sure you follow steps correctly. Comment below if you need any help.

1. Error establishing a database connection WordPress
2. No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.

Tags: Remove Multisite Feature WordPress, Remove Network Feature WordPress, Remove Multisite WordPress, Subdomain to Main Domain WordPress, Network Disable WordPress, How to Disable Network WordPress, Disable Multisite WordPress.

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in coding

About Me:

Szabi Kisded

Hey there, I'm Szabi. At 30 years old, I quit my IT job and started my own business and became a full time WordPress plugin developer, blogger and stay-at-home dad. Here I'm documenting my journey earning an online (semi)passive income. Read more

Sign up for my newsletter and get the YouTube Caption Scraper WordPress plugin for free
(worth 29$)!

All My Plugins In A Bundle:

My AutoBlogging Plugins:

My Online Courses:

A Theme I Recommend:

Featured Posts:

To Top