How do I turn a multi-site into a single-site?
WordPress Multisite lets you connect multiple websites and manage them easily. Many users integrate different websites into a single site to host them on a single network. This helps to update all websites automatically when you change or update the WordPress core or plugins.
Haven't found a suitable WordPress hosting yet? We have: WordPress Optimized Web Hosting
Sometimes you realize that a multisite installation is not always useful. Here we explain how you can convert your multisite installation to a single site in just a few steps.
- First secure your website
- Edit the wp-config file
Log in to your WordPress site using FTP or cPanel, whichever method you prefer. If you use cPanel, go to the file manager to access your site's files.
Open the wp-config.php file and delete the following code:
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/wordpress/';
define( 'DOMAIN_CURRENT_SITE', 'localhost' );
define( 'PATH_CURRENT_SITE', '/wordpress/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
You must also edit the following line in the wp-config.php file and set it to "false":
define('WP_ALLOW_MULTISITE', true);
3. Edit the .htaccess file
Next, you need to edit your .htaccess file located in the root directory of your WordPress installation. Replace the old rules with the following new rules:
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]
4. Deleting tables from the database
Lastly, you need to delete the following global tables in your database. To do this, use phpMyAdmin in cPanel.
You need help with phpMyAdmin? Follow the documentation: What is PHPMyAdmin and where can I access it?
wp_blogs
wp_blog_versions
wp_registration_log
wp_signups
wp_site
wp_sitemeta
Now log back into your WordPress. Multisite should now be removed.
Related topic: How do I manage users in WordPress?
Resetting a multisite to a single site can be a complicated process. However, if you follow the steps below, you can easily convert a multisite to a single site.
We hope that this guide has helped you with the transition. If you encounter any problems, open a support ticketto get help. Please note that the conversion from Multisite to Single Site by our support team is chargeable.