Managing multiple wordpress sites

New Page

Installing Multiple Instances of WordPress


  • Multiple instances of WordPress with multiple databases
  • The multisite function
  • Multiple instances of WordPress with a single database
  • Multiple databases, mismos usuarios

If you need multiple instances of WordPress, you have three installation types basadas in the system architecture or a combination of WordPress instances and databases:

  1. Multisite function of WordPress: a single instance of WordPress (with several sites created dentro de la misma instancia de WP) that compares a single database instance.
  2. Single Database: Multiple instances of WordPress compared to a single database instance.
  3. Multiple databases: several instances of WordPress with cada instancia utilizando su propia instancia de bases de datos.


Veamos primero el tercer tipo, varias instances de WordPress con varias bases de datos, porque tiene el mismo de installation que el site único de WordPress, excepto que hay varios sites.

Multiple instances of WordPress with multiple databases

Requires a separate MySQL database for cada blog que planee instalar. Si aún no los ha creado, las instrucciones básicas se encuentran aquí.

The wp-config.php archive will vary for installation. Las líneas a cambiar son las siguientes:

set(‘DB_NAME’, ‘wordpress’); // The database number define(‘DB_USER’, ‘number of users’); // Your MySQL username define(‘DB_PASSWORD’, ‘contraseña’); // … y countersigned

DB_NAME is the name of the individual database created for this blog. If you are using different usuario session inicios for this data base, edit DB_USERy DB_PASSWORDrefleje iso también.

Cargue cada archivo wp-config.php en su directorio raíz/installation específico y ejecute la instalación. See Installing WordPress for more information.

Arrive ↑

The multisite function

If you use different WordPress sites, you can use the multisite feature to create what you consider a red site. The multisite feature involves installing a single instance of WordPress and a single database.

The multisite feature is simpler than other types of WordPress multiple installs, but there are considerations and restrictions. See the following documents for more detailed information:

  • Antes de crear una red
  • Create a red
  • Administración de redes multisitio

Arrive ↑

Multiple instances of WordPress with a single database

Al igual que con la solution de base several earlier descriptions, el archivo wp-config.php variará para cada instalación. En este caso, sin embargo, solo una línea es única para cada blog:

$prefijo_tabla = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’

By default, WordPress assigns the wp_ table prefix to its MySQL database tables, but this prefix can be anything you choose. This allows you to create unique IDs for each blog in your database. For example, suppose you have three blogs to set up, with the names Main, Projects, and Test. You need to replace the wp_ prefix in each blog’s wp-config.php file:

Main blog:

$table_prefix = ‘main_’;

Project blog:

$table_prefix = ‘projects_’;

Test blog:

$table_prefix = ‘test_’;

As noted, you can use a prefix of your own making. Those provided here are examples only.

Téléchargez chaque fichier wp-config.php dans son répertoire racine/d’installation spécifique et exécutez l’installation. Voir Installer WordPress pour plus d’informations.

Arribe ↑

Multiples bases de données, mismos usuarios

Vous pouvez utiliser la même base d’utilisateurs pour tous vos blogs sur le même domaine en définissant les constantes CUSTOM_USER_TABLE et éventuellement les constantes CUSTOM_USER_META_TABLE pour pointer vers les mêmes tables wp_your_blog_users et wp_your_blog_usermeta. Voir Modification des tables wp-config.php/Custom User et Usermeta.

  • manish dudharejia
  • 23 janvier 2020
  • 13 commentaires

Un guide complet sur WordPress multisite

  • 17 minutes de lecture
  • WordPress , Techniques (WP)
  • Partager sur Twitter , LinkedIn

manish dudharejia

Sobre el auteur

Manish Dudharejia es presidente y fundador de E2M Solutions Inc , una agencia digital de servicio completo que se especializa en diseño, desarrollo y construcción de sitios web… Más sobre Manish ↬

Email Newsletter

Your (smashing) email

Weekly tips on front-end & UX. Trusted by 200,000+ folks.

  • Comience a probar in minutes. <br/> Obtener herramientas de desarrollo ax Comience a probar en minutos. Obtener herramientas de desarrollo axe
  • Improve your skills on the line with our talleres on the line amigables sobre front-end y diseño. Masterclass de diseño para la emoción
  • Improve your skills on the line with our talleres on the line amigables sobre front-end y diseño. Inmersión profunda en las pruebas de accesibilidad
  • Boost your skills online, with our user-friendly online front-end and design workshops. Listas de verificación de diseño de interfaz inteligente
  • In-Demand Skills with Northwestern Online Prepare for today’s communication roles Northwestern’s MS in Information Design.
  • Boost your skills online, with our user-friendly online front-end and design workshops. Deep Dive On Accessibility Testing

WordPress Multisite allows you to run multiple websites on your server using the same WordPress installation. From setting up WordPress Multisite to optimizing its various features, this article will help you understand every facet of this unique WordPress tool. Read on to find out more.

WordPress Multisite is a popular feature of WordPress, which enables you to create and run multiple websites using the same WordPress installation on your server. In other words, you can manage several different WordPress websites from a single dashboard.

However, people are sometimes unsure of how to use this feature. This guide will help to clear up questions related to what WordPress Multisite is, who needs it, and how to install it.

Let’s start with the basics.

1. What Is WordPress Multisite? #

WordPress Multisite is a feature that allows you to create and run multiple WordPress websites from a single WordPress dashboard. It was previously called WordPress Multi-User or WPMU. WordPress Multisite is not a new feature. It is an advanced feature on the WordPress platform that has been around since the launch of WordPress 3.0. You can use it for a variety of purposes, such as updating all of your websites with a single click or charging your subscribers to create a website on your Multisite network.

More after jump! Continue reading below ↓

Check out the Smashing online workshops on front-end and UX , with hands-on takeaways, live sessions, video recordings , and a friendly Q&A. On design systems, UX, web performance and CSS/JS. With Brad Frost, Stephanie Troeth and so many more.

Access the online workshops ↬

Features panel

2. Key Features of WordPress Multisite#

WordPress Multisite est livré avec diverses fonctionnalités uniques. Pour commencer, vous pouvez exécuter un réseau de blogs et de sites Web à partir d’une seule installation WordPress. Il vous permet de créer un réseau de sous-domaines, comme, ou des répertoires, comme Alternativement, vous pouvez également avoir un domaine distinct pour chaque site Web sur le réseau. Il est également plus facile de répliquer des fonctionnalités sur un réseau de sites Web.

In WordPress Multisite, you can control the entire network as a Super Admin. As a regular website admin, you can control only one website on the network. As a Super Admin, you control the accessibility of users who want to create an account and set up WordPress blogs or websites of their own.

A Super Admin can install new themes and plugins, make them available to the websites on the network, and also customize the themes for all websites. Another feature is the ability to create websites and online shops intended for specific languages, regions, and currencies.

Both the Super Admin and the website admin can control content. While this control extends over the entire network for a Super Admin, the website admin has the right to choose which content from the main domain gets displayed on their respective website. Plugins are also under the control of a Super Admin. However, a website admin can activate and deactivate plugins on their website if required.

3. Who Should And Shouldn’t Use WordPress Multisite? #

Although WordPress Multisite offers several features, it is not always the right choice. The main concern is that the websites on a Multisite network would share the same database. In other words, you can’t back up only a single website. That’s why all of the websites on a network must belong to the same principal domain.

Let me explain with an example. A university could use WordPress Multisite to build different websites for each department, for student and faculty member blogs, and for forums. Because the websites would share their database with the university’s main domain, they would be easier to manage on a Multisite network.

Likewise, banks and financial institutions with a national or global network of branches, digital publications with multiple content sections, government offices with multiple departments, hotel chains, stores with multiple outlets, e-commerce companies, and website design companies such as Wix could also use a Multisite network to their advantage.

However, a web designer couldn’t use Multisite to manage several unrelated client projects. If one of the clients decided to move their website elsewhere, it would be a problem because the website would be sharing its database with others on the network. Multisite makes it difficult to back up an individual website on the network. You would be better off using a single installation in this case.

4. Pros And Cons Of WordPress Multisite #

Now that we know who should and shouldn’t use WordPress Multisite, let’s look at the technical pros and cons. You’ll need to weigh them carefully before making a decision.

Pros #

  • The main advantage is the ability to manage multiple websites from a single dashboard. This is useful if you are running multiple websites managed by different teams under one parent domain, such as an e-commerce store with different country-specific sub-sites.
  • However, you can also assign a different admin to each website on your network.
  • With a single download, you can install and activate plugins and themes for all of the websites on your network.
  • You can also manage updates with a single master installation for all of the websites on your network.

Cons #

  • Because all of the websites share the same network resources, they will all go down if the network goes down.
  • A sudden increase in traffic to one website will affect all others on the network. Unfortunately, beginners often find it difficult to manage traffic and server resources on a Multisite network.
  • Similarly, if one website gets hacked, the entire network will get compromised.
  • Not all WordPress plugins support a Multisite network.
  • Likewise, not all web hosting providers have the tools necessary to support a Multisite network.
  • If your hosting provider lacks the server requirements, you won’t be able to use the Multisite feature. For example, some hosting providers might not allow you to add a domain to the same hosting server. In that case, you might need to change or upgrade your hosting plan or change providers.

5. Requirements For WordPress Multisite #

Knowing the technical pros and cons, you must have decided whether Multisite is the right option for you. If you are going to use it, you will need to meet a few technical requirements first.

One of the first things you will need is a web hosting service provider that can handle multiple domains in a single web hosting plan. Although you could use shared hosting for a couple of websites with low traffic, you should use VPS hosting or a dedicated server, owing to the nature of the WordPress Multisite network.

You will also need to have the fundamental knowledge of how to install WordPress. It would be an added advantage if you already have a WordPress installation. However, you will need to back it up. You will also need to deactivate all of the plugins.

Make sure you have FTP access. You will need to know the basics of editing files using FTP as well. Finally, you will need to activate pretty permalinks. In other words, your URLs should look not like, but like

6. Multisite Domain Mapping #

By default, you can create additional websites on your Multisite network as subdomains or subfolders of the main website. They look like this:

or like this:

However, you might not always want this, because you will be required to create a unique domain name for each website. That’s where domain mapping comes to the rescue. You can use this feature within the Multisite network to map additional websites to show as Using domain mapping, this is what you will see: =

or: =

Prior to WordPress 4.5, you had to use a domain mapping plugin to map the additional websites. However, in version 4.5+, domain mapping is a native feature.

7. Multisite Hosting And SSL #

As you probably know, Secure Sockets Layer (SSL) enables you to transport data over the internet securely. The data remains undecipherable to malicious users, bots, and hackers.

However, some hosting providers offer free SSL certification for the main domain only. You might need to buy it separately for each subdomain. If one of the websites on your multisite network lacks SSL certification, it will compromise the security of all the other websites. Thus, ensure that all websites on your WordPress Multisite network have SSL certificates.

  • KendoUI for Angular

    100+ fully native Angular components trusted by over 3M developers.

    Start free Trial B27217486

8. Installing And Setting Up WordPress Multisite For New And Existing Websites #

First, you will need to install WordPress. Once it’s installed, you will need to enable the Multisite feature. You can also enable it on your existing WordPress website. Before doing so, however, back up your website.

  • Use an FTP client or the cPanel file manager to connect with your website, and open the wp-config.php file for editing.
  • Add the following code to your wp-config.php file just before the /*:
  • /* Multisite */ define( ‘WP_ALLOW_MULTISITE’, true );


  • Now, save and upload your wp-config.php file back to the server.
  • That’s all!

Next, you will need to set up the Multisite network. If you are already logged into your WordPress dashboard, refresh the page to continue with the next steps. If not, you will need to log in again.

  • When setting up the Multisite network on your existing website, you will need to deactivate all plugins. Go to the “Plugins” » “Installed Plugins” page, and select all plugins. Select the “Deactivate” option from the “Bulk Actions” dropdown menu, and click “Apply”.
  • How to disable the add-inDeactivate Plugin. ( Large preview)

  • Now, go to “Tools” » “Network Setup”. If you see a notice that you need Apache’s mod_rewrite module installed on your server, don’t be alarmed. All leading WordPress hosting providers keep this module enabled.
  • How to create a red WordPress siteNetwork Setup. ( Large preview)

  • Choose the domain structure for websites on your network, either subdomains or subdirectories.
  • Add a title for your network.
  • Make sure that the email address for the network admin is correct.
  • Click the “Install” button.
  • You will see some code that you have to add to the wp-config.php and .htaccess files, respectively. Use an FTP client or the file manager in cPanel to copy and paste the code.
  • Agregar code al archivo wp-config.php y .htaccessComplete Setup. ( Large preview)

The set-up is complete. You will need to log in again to access your Multisite network.

9. WordPress Multisite Configuration And Other Settings #

Hold on! You still need to configure the network settings, for which you will need to switch to the Multisite network dashboard.

  • Open the “My Sites” menu in the admin toolbar. Click the “Network Admin” option, and then click the “Dashboard” option to go to the Multisite network dashboard.
  • Click the “Settings” option in the admin sidebar. You will see your website’s title and the admin’s email address. Make sure they are correct before moving on to a few essential configuration settings.

A. Paramètres d’enregistrement #

Ce paramètre vous permet d’ouvrir votre site Web à l’enregistrement des utilisateurs et permet aux utilisateurs existants de créer de nouveaux sites Web sur votre réseau. Cochez la case appropriée.

Si vous cochez la case “Notification d’inscription”, vous recevrez une notification par e-mail chaque fois qu’un nouvel utilisateur ou site Web sera enregistré. Cochez l’option “Ajouter de nouveaux utilisateurs” pour permettre aux administrateurs de sites Web individuels d’ajouter de nouveaux utilisateurs à leurs propres sites Web.

Use the “Limited registration by email” option to limit registration to a specific domain. For example, only allow users from your company to register on your website. Similarly, you can also prevent certain domains from being registered.

Cómo registrar nuevos sitesRecording settings. (Large preview)

B. New Website Settings #

Here you can configure default options, such as welcome emails and default first post, page and comment content, for each new website created on your multisite network. You can update these settings at any time.

Hacer adjusts para el nuevo sitioNew site settings. (Large preview)

C. Download Settings #

You can limit the total amount of space each website on your network can use for downloads. This will help you delegate server resources wisely. The default is 100 MB. You can also set the type of files that users can add to their websites, such as images, .doc, .docx, and .odt files, audio and video files, and files. PDF. You can also set a size limit for individual files.

Asigne espacio para cargas de cada sitio en su redDownload settings. (Large preview)

D. Menu Settings #

This setting enables the administrative menu for the plugins section of your network’s websites. Once you enable this setting, users will be able to activate and deactivate plugins, but won’t be able to add new ones. Click “Save Changes” to apply the changes you have made.

10. Resources: Setting Up Themes And Plugins #

Because individual website administrators can’t install themes and plugins on their own, you will need them to set up on the network.

A. Themes #

Go to “My Sites” » “Network Admin” » “Themes”.

On this page, you will see a list of the themes currently installed. Use the following settings to make your desired changes.

  • “Network Enable”: Make the theme available to website administrators.
  • “Network Disable”: Disable a theme that you have previously made available.
  • “Add New”: Install a new theme on your network.

Change a Default Theme #

Add the following code to your wp-config.php file to change the default theme for new websites (replacing your-theme with the name of the theme’s folder):

// Setting default theme for new sites define( ‘WP_DEFAULT_THEME’, ‘your-theme’ );


B. Plugins #

Go to “My Sites” » “Network Admin” » “Plugins”.

Click the “Network Activate” option below each plugin to add it to your network. Remember that if you have already enabled the “Plugins Menu” option for website administrators in the “Network Settings”, then admins will not be able to delete or install new plugins. However, they will be able to activate and deactivate existing plugins.

11. How To Add A New Website To The Multisite Dashboard #

Go to “My Sites” » “Network Admin” » “Sites”.

How to enable the administrative menu for the complementary sectionAdd locations. (Large preview)

Click the “Add New” button.

How to aggregate a new site to the multisite panelAdd new sites. (Large preview)

Fill in the following fields.

  • Add the address (URL) of your new website.
  • Enter your “Site Title”.
  • Enter the email address of the administrator of the new website.

Botón Agregar nuevo siteAdd a site button. (Large preview)

Click the “Add Site” button to complete the process.

12. Google Analytics on WordPress Multisite#

You can also generate Google Analytics code for all pages of all websites in your multisite network. If you haven’t already, create a Google Analytics account and sign in.

  • Commencez par créer une propriété pour configurer un identifiant Google Analytics. Vous aurez besoin de cet ID pour installer votre global site tag (gtag.js).
  • Ensuite, recherchez votre identifiant Google Analytics dans la colonne “Propriété” du compte concerné dans la section “Admin” de votre compte Analytics.
  • Now, you can copy and paste the global site tag on the relevant web pages. Add the gtag.js tag right after the opening <head> tag. You can have different analytics code for each website on the network, and the Super Admin can manage all of them if needed.
    Advertise with Smashing Magazine

13. Setting Up On Local Host #

You can use any WAMP or LAMP software to set up WordPress Multisite on a local system. You’ll need to follow the same steps you did to host a website. However, take care with the domain mapping. You can easily set up a subdirectory website in the local system, but to set up a subdomain or a different domain, you’ll need to set up virtual host on the WAMP or LAMP server.

14. Useful Plugins For WordPress Multisite And How They Work #

You can use a variety of plugins to ensure the smooth operation of your Multisite network.

A. Domain Mapping This plugin enables you to offer each website on your network its own domain name.

B. WPForms Create different forms using a simple drag-and-drop tool.

C. Yoast SEO Optimize the websites on your network for better search engine results. Yoast is a well-known name in the SEO world.

D. Pro Sites Offer paid upgrades, advertising, and more, thereby monetizing your Multisite network. You can restrict the features of the free website, encouraging users to upgrade.

E. SeedProd Add customized “Coming soon” and “maintenance mode” landing pages. This will jazz up the network while administrators work on their websites.

F. WP Mail SMTP Fix the “WordPress is not sending email” issue with this plugin. It allows you to use an SMTP server to send crucial Multisite registration and notification emails.

G. User Switching Using this plugin, you can switch user accounts as network admin to see what your users are experiencing when working on their websites. It can help you to troubleshoot some functionality issues.

15. Troubleshooting And FAQs #

A. Troubleshooting #

When setting up a Multisite network, you might encounter a few common problems. Let’s see how to troubleshoot these issues.

I. Login Issues #

You might encounter a wp-admin login issue If you are using WordPress Multisite with subdirectories, rather than subdomains. If you are not able to log into the WordPress back end for individual websites with subdirectories, you can try replacing the define (‘SUBDOMAIN_INSTALL’, true); line in wp-config.php file with define (‘SUBDOMAIN_INSTALL’, ‘false’);.

II. Find Unconfirmed Users #

A veces, es posible que no pueda encontrar usuarios registrados que no hayan recibido un correo electrónico de activación. Por lo general, las configuraciones de correo mal configuradas son responsables de este problema. Puede usar SMTP (Protocolo simple de transferencia de correo) para enviar correos electrónicos de activación. La función PHP Mail puede enviar correos electrónicos a la carpeta de correo no deseado debido al envío no autorizado de correos electrónicos. En su lugar, puede usar SMTP con la autenticación de dominio adecuada para recibir correos electrónicos en la bandeja de entrada. Utilice cualquier proveedor de servicios SMTP, como MailGun o Gmail.

B. Preguntas frecuentes  #

1. ¿Puedo instalar el complemento “X” en mi WordPress Multisite? #

Sí, can install as complemento in Multisite. Without embargo, no todos los complementos wires compatible with Multisite. Check add-in support before installation.

2. ¿Puedo compartir los inicios de sesión y las funciones de los usuarios en una red multisitio? #

Sí, puede compartir los inicios de sesión y las funciones de los usuarios en varios sites web. Esto resulta útil if desea que los administradores de sites web administradores el contentio de sus propios sites web en su red multisite.

3. Is it possible to show posts from the main website in all red websites? #

Sí, puede mostrar las publications de su main web site en toda la red.

4. If you are a superadministrator, ¿puedo iniciar session en all sites web de la red con una única identificación? #

Sí, los superadministradores pueden usar las mismas credenciales para iniciar sesión en all los sites web de la red.

5. Como superadministrador, ¿puedo iniciar session in los sites web de otra red? #

No, not puede iniciar sesión en otras redes que no sean la suya.

6. ¿Puedo agregar más sites web a mi red más adelante? #

Sí, can aggregate both web sites as desired, in any moment that desired.

7. ¿Puedo use different complementos for this web site, like Yoast for one and All in One SEO for another? #

Sí, can use different complementos with similar functions for different websites. Without embargo, you must configure the complement for the specific web site that you wish. If you activate all of the red Multisitio, it will work automatically on all web sites.

8. Can I install a complement on an individual website? #

No, you cannot install an add-in directly on an individual website. You want to install it in the red. Without embargo, you can enable or disable a specific website.

9. ¿Puedo crear un tema and aplicarlo a un site web específico? #

Sí, puedes crear tantos temas como quieras. You can also enable or disable themes as a website administrator.

16. WordPress Multisite Examples#

Aquí hay algunas marcas conocidas que usan una red multisite de WordPress.

  • OpenView Venture Partners OpenView Venture Partners is a venture capital firm. The company uses a multisite installation to eject three different websites, including the corporate website, the corporate blog, and a multi-author blog named Labs. L’empresa ejecuta los dos últimos sites web bajo los subdominios y Cada site web has a centralized theme whose function is perfect.
  • University of British Columbia Blogs The University of British Columbia (UBC) also uses WordPress Multisite. El propósito aquí es permitir a los professores crear sites web de cursos, crear blogs con múltiples colaboradores and crear portafolios para estudiantes and miembros del personal. Installing WordPress Multisite brings full control over our online communities. Pueden agregar tantos estudiantes como deseen y llevar la enseñanza más allá de las paredes del aula.
  • Vuelos baratos Cheapflights is a website of viajes that offers boletos de avión, hotel reservations and vacation packages. The website uses WordPress Multisite to enhance the Consejos de viaje section. La sección cubre las últimas noticias sober viajes, consejos para volar, información sobre los mejores lugares para viajar y más.

Terminando #

As you can see, WordPress Multisite comes with several ventajas. Puede controlar and administrar varios sites web desde un solo tablero. Sin duda, puede reducir su trabajo preliminar y hacer que el monitoreo de su sitio web sea sencillo. With suerte, ahora tiene suficiente conocimiento sobre la installation, la solution de problems y el trabajo con aplicaciones en una red multisite para dar el paso.

Has Alguna vez used WordPress Multisitio? ¿Considerarías usarlo para futuros proyectos? Háganos saber in the comments section.

editorial aplastante(dm, yk, al, he)

Explore more

  • WordPress
  • Techniques (TM)

Video Managing multiple wordpress sites

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…