Post image for How to Disable Multi Site option in WordPress 3.0

How to Disable Multi Site option in WordPress 3.0

by Bobby Jay

We have already discussed in detail how to enable multi site option in wordpress 3.0. I have received various e-mails and requests for guide on how to disable multi site  feature already enabled on wordpress 3.0 due to incompatibility of various plugins with multi site feature.

Disabling multi site feature is very easy and needs just editing of one file. Let me to recall specific step of enabling multi site option. You might remember that we have modified config file and added some code.

All you need to delete this 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 );

After removing above lines now change the disable the multisite feature by replacing true word with false;

define('WP_ALLOW_MULTISITE', true);

But moving onward to disable unwanted feature, do remove extra sites that are hosted on same wordpress installation and follow above procedure.

Before editing your config file make a backup of it and enjoy WordPress 3.0 with disable multisite feature.

Related posts:
  1. How to Enable Multi Site Option in WordPress 3.0
  2. Disable Directory Browsing To Secure WordPress Installation
  3. Download WordPress 3.0 “Thelonious”
  4. 9 Vital Tips to Secure WordPress
  5. Thesis Customisation to Show Thumbnail in Teaser

{ 36 comments… read them below or add one }

Ileane @ Wordpress SEO July 4, 2010 at 5:30 am

Hi Imran, thanks for the instructions. I have a question though, what is the advantage of removing the multisite option? Does it make the site load faster? What are some of the plugins that are causing the conflicts? Thanks!

Reply

Imran Yousaf July 4, 2010 at 11:47 am

Ileane, actually “Google Sitemap XML” plugin have conflict with multi site option, cuz plugins are activated network wide and plugins have to perform for every site separately. Like generating separate site maps for ABC site and XYZ site in multi site environment.
Super Cache has been updated to work with multi site.

Reply

Ileane @ Wordpress SEO July 4, 2010 at 4:51 pm

Ha, that one shouldn’t surprise me. With the previous version of WPMU I have 2 blogs on BuddyPress. The owner installed the Google Sitemap XML plugin, but there’s no way for the individual blog owners to adjust the settings. So it never really worked on WPMU, it’s just that no one seemed to care about it before. I think they should be doing something to upgrade that plugin because it’s pretty important to all the multisite users. Thanks for letting me know.

Reply

Imran Yousaf July 4, 2010 at 5:10 pm

Now scene has been changed. Majority of people would be using Multi Site feature and companies have to update their work or users will pick alternate to them.
One of my reader requested me in comments about writing this article. Thats why i wrote a procedure on disabling the Multi Site feature if someone enabled it and found they are uneasy and can live without it.

Reply

Swamykant September 8, 2010 at 6:40 pm

XML Sitemap Feed works very well in the Multisite option:

For example check this :
http://www.scientiamag.com/sitemap.xml
http://www.scientiamag.com/swamykant/sitemap.xml

Reply

Andrea_R July 5, 2010 at 10:09 pm

If you’re having issues with particular plugins there *are* network-compatible version of many of them. Including sitemaps. And yes, free ones.

Reply

Imran Yousaf July 5, 2010 at 11:18 pm

I doubt that there is no network version of Google sitemaps plugin for Multi Site version. If it was out, we must have plugin update notification from plugin site. Anyways, Thanks for your concern, Andrea.

Reply

Andrea_R August 21, 2010 at 10:16 pm

This one works with the network:
http://wordpress.org/extend/plugins/xml-sitemap-feed/

I wasn’t suggesting the one you mentioned above would do it, I was stating there were *different* plugins that did work.

Also, in disabling the network, there are extra sitewide tables that need to be removed. Otherwise, if you try and reinstate the network, you’ll get a message that one already exists.

Reply

Imran Yousaf August 21, 2010 at 10:27 pm

Thanks Andrea for updating us with working version of XML site maps. People running WP in multi site environment should try it. As far as extra tables are concerned, that needs to be removed manually. But before disabling multi site option, one should reconsider his decision to disable multi site option or not.

Swamykant September 8, 2010 at 6:43 pm

Hi Andrea

This plugin works fine on my multisite wordpress blog –

http://www.scientiamag.com/sitemap.xml
http://www.scientiamag.com/swamykant/sitemap.xml

However while this need to be network activated

Evelien July 9, 2010 at 1:43 pm

Thank you for these instructions!

I got into serious problems with the network option. My blog is set up on two domains, using WPML to provide support for two languages: http://www.eveliensnel.nl/blog for Dutch; http://www.eveliensnel.com/blog for English. But when I upgraded to WP version 3.0 with network support, all my English language posts became inaccessible to the users.

I tried many, many things. For a whole week I have been without the English version of my blog. And for a few days the Dutch version was down too. I think this is a hopeless case.

Since no help was forthcoming, neither on the WPML forum nor on the WordPress.org forum, I have been forced to disable the network option again. Your post showed me how to do that quite painlessly.

It is a pity, the network option would be great for me. But WPML is essential for my site. So I will have to do without network for a while.

Reply

Imran Yousaf July 9, 2010 at 10:13 pm

Evelien, these issues will get solved with some time. until that we have to wait and should not put our blogs on risk by using multi site feature. Wait for some time so that WP multi site get more sophistication and than try network option.
I am glad my post solved your problem.

Reply

Moblox July 11, 2010 at 3:23 am

Thank you for quick post. However, after removing those codes from wp-config.php I still had other problem: my blog url being like this
http://domain.com/blog/2010/07/post
But then the problem solved by fixing the Permalink options (Setting) and removed /blog.dir directory via CPanel.

Reply

Rohit Sane July 12, 2010 at 3:17 pm

Thanks buddy! Now I do not need to worry about Duplicate content issues in Sitemaps .. There were some SEO concerns with this Multi-Site option!

Reply

Auz July 13, 2010 at 10:48 am

Hi, I am getting a database connection error when I make these changes to uninstall multi-site. Any idea why this may be happening?

Reply

Imran Yousaf July 14, 2010 at 1:43 am

Probably database name has been changed/disturbed in config file, like table name or database name.

Reply

Jeffrey Morgan August 5, 2010 at 3:23 am

Hi Imran,
I need your help to verify information on the edit of wp-config.php from your first post on this subject.
You mention you need to add this line of code to file:
define(‘WP_ALLOW_MULTISITE’, true);
First question! Why is this line not present in the config.php file to begin with?
Should be present in file. Written as: define(‘WP_ALLOW_MULTISITE’, “#”);
Second question where should this line of code be inserted into the config.php file? You don’t make this clear in your first post.
I’m assuming that you place the above line of code, above the line:
/* That’s all, stop editing! Happy blogging. */

Thank you for your continued good work!

Reply

Imran Yousaf August 5, 2010 at 2:20 pm

I really appreciate that you read the posts with open mind and consult for problem where you stuck. As per my understanding of not mentioning the magical line in config file is, someone can mistakenly enable (True) the multi site option which will make changes in whole wordpress installation. So to avoid accidental “enabled multi site” option, WordPress team haven’t included it in.
As far as second part of question is concerned, when you decided to go with multi site option, include the line at the start of config file so that when wordpress installation refer that file to pick the information, WordPress should know that i have to run this installation instance in multi site mode. It means that line should be added at the start of file, no matter you add it before comments or after comments. But please be vigilant when editing config file that no comment is left without openning or closing comment tag i.e /* comment */ or this will create a lot problems.

Reply

Jeffrey Morgan August 6, 2010 at 2:38 am

Hi Imran,
Once again your answers are clear, concise and right on target! Thank You so very much for making my day a good one!

Reply

Imran Yousaf August 6, 2010 at 7:33 pm

Thanks Morgan for your appreciation, such words motivates blogger to put their best efforts in their blogs.

Reply

Mary September 13, 2010 at 7:58 pm

Who would of thought that disabling Multi-site would have been so easy. Your instructions worked a treat! Shame Multi-Site wasn’t up to much!

Reply

marlin October 7, 2010 at 8:14 am

When I disable the multisite per your instruction I get a redirect error.

Help.. I want it to go away!!!

Thanks

Reply

Imran Yousaf October 7, 2010 at 7:16 pm

I visited your site, its working just fine.

Reply

marlin October 7, 2010 at 7:44 pm

yes, because I have multisites set to true.. which I don’t want. If I set it to false I get the redirects.

I am also unable to set custom permalinks.. When I try to save a custom choice from the dashboard after I hit save it refreshes and time and date are checked again.

thanks for looking

Reply

Imran Yousaf October 7, 2010 at 8:24 pm

Try to remove other sites first and then disable multisite. Don’t forget to edit config file. Also take a look at your htaccess file.

Reply

marlin October 7, 2010 at 8:47 pm

I deleted all the previous sites (1). What config file?

Reply

Moblox October 17, 2010 at 6:54 am

I have the same problemo dude but then resolved.. My magic deed is, simply removing the blogs.dir folder from wp-content.. that’s that! :-D

Reply

Niran Maharjan October 12, 2010 at 8:35 pm

Thanks Imran for the tutorials. The multisite feature was creating problems over plugins and even few features that I’d like., but I wonder what happens to the plugins under network-activated if I disabled the WP-Multi Site feature. Some pics plugin are directed for the blogs.dir directory over the main blog, will it ruin ?

Reply

Imran Yousaf October 12, 2010 at 10:42 pm

Actually blogs.dir was created at the time of enabling multi-site. Simply uninstall/disable that plugin and then install/enable it in non-multisite environment. Problem will be solved.

Reply

Niran Maharjan October 14, 2010 at 10:06 am

Thanks ! it worked well, now my blog is in non multi-site.

Reply

Imran Yousaf October 14, 2010 at 7:03 pm

Welcome Niran.

Reply

Howard November 17, 2010 at 11:30 pm

Also delete the /blog/ portion of the permalinks that is created when you enable networking. Otherwise you pages will return a not found error.

Reply

Elle June 27, 2011 at 6:27 pm

Wow – this caused a HUGE problem on my site. I had to re-add the code but change this:

define( ‘MULTISITE’, true );

To read to false.

Now it is perfection!!!

Reply

ApniVideo July 16, 2011 at 2:28 pm

When I try to add this “define(‘WP_ALLOW_MULTISITE’, true);”
It create conflict with Google XML Sitemaps.. Getting this error msg”Google XML Sitemaps is not multisite compatible.”
Any help really appreciates ….

Reply

Imran Yousaf July 17, 2011 at 10:08 pm

Google XML Sitemap is not compatible with Multisite. Look for alternate.

Reply

Hub Hosting September 3, 2011 at 8:40 am

I went into an old blog of mine and noticed I had no plugins installed except a disabled Google XML Sitemaps. WTF? So I tried to enable it and that’s when I noticed the message that said it wasn’t compatible with multi-site. I had forgotten I multi-sited it. So I googled on how to disable it and your instructions came up. They worked like a charm. I now have my blog back to normal. Thanks for your help.

About the XML plugin, there is one that works called:
Google XML Sitemaps with Multisite support
http://wordpress.org/extend/plugins/google-xml-sitemaps-with-multisite-support/

Reply

Leave a Comment


× nine = 81

CommentLuv badge

{ 1 trackback }

Previous post:

Next post: