One WordPress installation, Multiple blogs

Source: Internet
Author: User

 

Is there Multiple blogs, and each blog uses multiple WordPress blogs? Are you bored with repeated upgrades and installation of plug-ins? If yes, have you ever tried to install one WordPress so that it can be used by Multiple blogs? Next I will talk about how to implement a WordPress installation and use Multiple blogs together.

Step 1:Specify all domain names to the same WordPress installation directory.. In this way, all blogs can be installed using the same WordPress.

The second step involves two situations:

The first is to use different databases.OnlyYou need to add the following at the beginning of the wp-config.php FileCode:

        test   $ hostname = $ _ server ['HTTP _ host'];  switch  ($ hostname) { case  " fairyfish.com  ": $ db = " db1 ";  Break ;  case  " denis.fairyfish.com  ": $ db = " DB2 ";  Break  ;}  // ** MySQL settings ** //  define ('db _ name', $ dB );  // The Name Of The database  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.