• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
logo_gsb

GetSetBlog

Let's get your Blog Ready!

Show Search
Hide Search
  • Start a Blog
  • WordPress
  • Hosting
  • Blogging
  • Contact Us / Guest Post
WordPress

How to Switch/Uninstall WordPress multi-site to single-site4 min read

Updated on: March 1, 2021    Naman Khare 16 Comments

Feature Image - MULTISITE TO SINGLE SITE

WordPress multi-site comes in handy when you want to start more that one blog or website on a single WordPress-installation, but some users with a multi-site network might want to switch to single-site one.

So, in this guide, I’ll show you how to revert your website back to Single-WordPress Installation.

Note: It is always safer to take a Backup of your stuff before performing any significant change that you have no idea about, since, reverting to a single-user site will delete all the websites except the main site. If you are looking for a plugin to BackUp your data then consider checking this. ValutPress

Table of Contents

How to Uninstall WordPress multi-site?

Setting up the WordPress Multi-site may not be difficult but reverting the process is relatively a hard work to do. As I’ve already mentioned above, take a proper backup of your site before performing the task.

Now, let’s move to our first step.

Edit your wp-config file :

So, to do this you have two ways, either, using the FTP or by using the cPanel, in case, if you decide to use cPanel: go to your File Manager. Next, inside the public_html folder search for the file named wp-config.php (right click on it and then click edit )

Or, if you plan to use the FTP.  Using any FTP software you like, connect to your website’s home directory then inside the public_html folder we need to edit the wp-config.php file.

After the editor opens up, we have to delete these lines from the wp-config.php :
define( 'MULTISITE', true );

define( ‘SUBDOMAIN_INSTALL’, false );

$base = ‘/’;

define( ‘DOMAIN_CURRENT_SITE’, ‘www.haxworld.net’ );

define( ‘PATH_CURRENT_SITE’, ‘/’ );

define( ‘SITE_ID_CURRENT_SITE’, 1 );

define( ‘BLOG_ID_CURRENT_SITE’, 1 );

Note: In the wp-config file, your website’s name will appear instead of  ‘www.haxworld.net’ and the location of your WordPress installation will appear instead of ‘/’ (by default, it’s installed in the home directory).

Furthermore, you’ll have to edit the line, same as the one given below, and change it to “false” from “true”.

define('WP_ALLOW_MULTISITE', false);

Edit your .htaccess :

Finally, the WordPress multi-site has been uninstalled but you still need to edit a few lines in the .htaccess to access your website smoothly.

Note: In case, if you are unable to see the .htaccess file in your WordPress installation directory then make sure you check the Show Hidden Files option from the top-right corner.
turn on hidden files :WordPress multi-site to single site

If you had installed the WordPress multi-site by adding the rules manually then replace those rules with the code given below. Or, if you had installed the multi-site automatically, at the time of installation of WordPress, then Replace the lines which come between [#Begin WordPress and #End WordPress] by the code given below.

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Dropping Tables from the Database :

Finally, just one more step is left that’s to clean your database of those waste multi-site tables.

To access your database there’s no way as simple and easy as phpMyAdmin. To access phpMyAdmin, go to your cPanel. You’ll find the phpMyAdmin option, under the databases tab.
choose PhpMyadmin : WordPress multi-site to single site

After you open phpMyAdmin, choose your database then search for the tables given below, select them, then choose drop option to delete those tables.

  • wp_blogs
  • wp_blog_versions
  • wp_registration_log
  • wp_signups
  • wp_site
  • wp_sitemeta

Note: Table prefix may be different in your case.

drop tables : WordPress multi-site to single site

So, we’re done. When you log in to your admin dashboard next time you’ll not see the multi-site anymore. 🙂

If you still face any problems while or after uninstalling the WordPress multi-site, please let me know in the comment section below.

Related Posts

Feature Image
Gutenberg Editor for WordPress 5.0 : Brief Introduction
Wordpress.com to Wordpress.org migration -featured
How to Migrate From WordPress.com to WordPress.org(Self-Hosted)
Disable WordPress.com login option -feature
How to disable the plugin to deactivate login with WordPress.com option

Filed Under: WordPress Tagged With: WordPress, WordPress Multisite

Reader Interactions

Comments

  1. Kadi says

    November 22, 2018 at 6:05 pm

    Hi ! thanks for this ! Easy to understand ! But I’ve a 500 error now and I’m unable to access to BO or FO.
    -wp-config modified
    – multisite table dropped
    -htaccess renamed in htaccess.txt (to see if the probleme come from it or no)

    Do you have an idea ?

    Thanks a lot

    Reply
    • Naman Khare says

      November 22, 2018 at 8:07 pm

      Hey Kadi,
      1- Make sure you followed all the steps correctly. Also, did you rename back from htaccess.txt to .htaccess?
      2- Do check the website URL in the Database under the wp_options table, Make sure the website address is correct and the Files are in the same directory.

      If this doesn’t help contact your Hosting Support to check if they can help you.

      Reply
  2. Patrick says

    September 20, 2019 at 11:26 pm

    I think this worked but don’t tuouch the .htaccess file. My website went down when I followed the instructions about .htaccess.

    Reply
    • Naman Khare says

      November 28, 2019 at 8:01 am

      Please contact your site administrator to help you with this matter.

      Reply
  3. Marten Benatar says

    December 23, 2021 at 1:52 am

    Hello,
    My database are wphv_blogs and so on. Are these the correct files to Drop?

    Reply
    • Naman Khare says

      December 23, 2021 at 8:13 pm

      Hello Marten,
      ‘wphv_’ must be the Table prefix for your WordPress database linked to your website. If you want to verify you can always check the wp-config.php file and search for the ‘$table_prefix’ variable to check if it is correct.

      Reply
      • Marten Benatar says

        December 25, 2021 at 12:57 am

        Hello,
        $table_prefix = wpfg

        I remove the DB files from wphv

        Reply
  4. Marten Benatar says

    December 23, 2021 at 5:10 am

    I have done all of that and it still says My Sites when I login to my wp_admin.

    Reply
    • Naman Khare says

      December 23, 2021 at 8:15 pm

      Make sure you have performed the following actions in the correct database tables.

      Reply
    • Naman Khare says

      December 23, 2021 at 8:18 pm

      If you are still facing the same issue, then please let me know about it so that I can check and update the article accordingly.
      Thank you.

      Reply
  5. Marten Benatar says

    December 25, 2021 at 1:35 am

    I got your email and recommendations. We just had our web host service transferred and when using File Manager, there are so many files in their with previous back ups and old files, I don’t know what is what. The $table_prefix in wp_config is wpfb. I’m am very confused.

    Reply
    • Naman Khare says

      December 25, 2021 at 1:43 am

      Hello,
      You removed wrong DB file and that is the issue. Now go back to your database management software probably the PhpMyAdmin and apply the same operations with the tables which have “wpfb_” as a prefix. Or better you can ask your hosting support to do it for you.

      Thank you.

      Reply
      • Marten Benatar says

        December 25, 2021 at 2:10 am

        I have removed the database files in wpfg as well. “My Sites” is still active. –URL Hidden!–

        I am at a loss

        Reply
        • Naman Khare says

          December 25, 2021 at 5:25 am

          Did you removed the necessary lines from the wp-config.php file? ex:- Setting ‘WP_ALLOW_MULTISITE & MULTISITE’ to false (follow the steps given in the post). If you still face the issue, I will suggest you to either ask your hosting support or hire someone to do it for you.

          Reply
  6. Press Release says

    January 23, 2022 at 8:30 pm

    You could definitely see your enthusiasm within the article you
    write. The arena hopes for more passionate writers such as you who are not afraid to say how they believe.

    At all times go after your heart.

    Reply
  7. gilles says

    February 26, 2022 at 5:51 pm

    wondering if you could help. I tried your instructions and for some reason I can’t seem to make this work. would appreciate some additional help if possible. even if it means allowing you acceess the hosting company doesn’t understand what I am talking about to make these changes

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Our Newsletter

Get awesome content delivered straight to your inbox.

Recent Posts

  • What is niche blogging, and should you start it in 2023?
  • Black Friday and Cyber Monday Deals for Bloggers 2018 [Complete Kit]
  • [Exclusive] BlackFriday Deal on WPX Hosting upto 95% off!
  • Local SEO with SEMrush: Boost your Local Sales!
  • Analytify review: All in one Google Analytics Plugin for WP [Indepth]

Categories

  • 1 Minute Post
  • Blogging
  • Compression
  • Deals
  • Domain
  • Hosting
  • SEO
  • WordPress
  • WordPress Plugin

Archives

  • January 2023
  • November 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018

Categories

  • 1 Minute Post (1)
  • Blogging (6)
  • Compression (1)
  • Deals (1)
  • Domain (1)
  • Hosting (2)
  • SEO (1)
  • WordPress (5)
  • WordPress Plugin (2)

Footer

About GetSetBlog

GetSetBlog is an online WordPress & Blogging resource which focuses on WordPress tutorials, How-to’s, guides, plugins, news, SEO, Digital Marketing and more. We aim to provide the most comprehensive beginner’s guides to anything about WordPress, Blogging & Digital Marketing — from installing plugins, themes, automated installs, and setups, to creating and setting up pages for your website.

Founded by Naman Khare, the main goal of this site is to provide useful information on anything and everything WordPress, Blogging & Digital Marketing.

Site Navigation

Blogging
Web hosting
WordPress
WordPress Plugins

  • GetSetBlog’s Disclaimer
  • Start blog in 2018

Copyright © 2018 · GetSetBlog.com | Theme design by Naman Khare. Framework by Studio Press.

 

Loading Comments...