What is WordPress Multisite?
WordPress Multisite setup is an easy-to-use feature that allows users to create multiple websites and all use the same theme. Users can also connect all their websites to a single control panel and create custom themes for each website.
WordPress Multisite is an upgrade of WordPress core. This gives users the ability to host multiple websites with a single WordPress installation. Multisite combines multiple websites using the same database and file structure, but each site has its own unique settings, themes, and plugins. Each website administrator can control the users, content and plugins of his website. It allows websites to be updated, monitored and various functions added securely at the same time.
What Does WordPress Multisite Do?
WordPress Multisite is a feature of WordPress that offers the ability to host multiple websites on a single website. Thanks to the multisite functionality, you can create and manage multiple different websites and use different themes and plugins for each website. WordPress Multisite allows small businesses, corporates, educational institutions, and websites to create multiple websites with a single WordPress installation, without the need for separate WordPress installations for each website.
How to Install WordPress Multisite?
For this, first go to the wp-config.php file
/* That's it. Happy Blogging! After the */ line
define('WP_ALLOW_MULTISITE',true);
After setting the site details (site name, admin e-mail address), click on the kur button and in the next step, choose whether your multi site will work through a subdomain or as a directory.
In the final stage;
We create a folder called blogs.dir under the wp-content folder and chmod permissions to 777.
in the wp-config.php file
/* That's it. Happy Blogging! */ before the line
define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'yoursiteaddress.com' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 ); /* That's it. Happy Blogging! */
enter and save the codes.
Then to our existing .htaccess file (if you don't have .htaccess you can create one)
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR ] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]
Entering the code, we replace it with the old file.
Now you can see your multisite running when you go to the admin panel.