WordPress Apply Multisite

0
694

What is WordPress Multisite?
You can create multiple sites with one wordpress installed on the server.
Depending on the address that visitors connect to, you can create multiple sites with only one wordpress installed, rather than installing WordPress on a site-by-site basis.

What are the advantages of building a WordPress Multisite?
Even if you have multiple sites, you have one wordpress, and although you can see different sites, your internal data is integrated.

Set up WordPress Multisite
The WordPress Default Administrator screen does not have a Multisite Settings menu.
To make this menu visible, you need to modify the two files directly below after connecting to FTP.

  1. wp-config.php
  2. .htaccess

1. Contents of wp-config.php file /* That’s all, stop edging! Happy logging. */ Insert the following at the top:

/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);

When the file is modified, a Tools > Network Setup menu is created on the Administrator screen.
(Note: To set up a multisite while the current site is running, the plug-in will need to be disabled, so the service will need to be taken into account.)

2. Select Sub-domain or Sub-directory Method
– Subdomain : Name the subdomain before the domain name (e.g.english.multi.co.kr)
(If you are using subdomain, you must set domain management (DNS) subdomain in addition to wordpress setting.)
– Subdirectory : The domain name is the same and named by directory (e.g. multi.co.kr/english)

3. /* That’s all, stop edging! Happy logging. */ Insert below at the top of the wp-config.php file.

define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘www.도메인.com’ );
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

4. Insert the following into the .htaccess file:
The wp-config.php and .htaccess files must be located in the same path.
※ If you do not see the .htaccess file, check [Server > Hidden File Display].

Modify the contents of the .htaccess file as shown below.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress

[Note]
* If login is not possible, delete all browser cache and cookies.
* Disable all plug-ins and re-enable them after network installation. .
* Change the unique address method in a way other than the basic address.

5. After logging in again, a new menu is created called “My Sites” for creating and setting up sites.
Network Manager > Manage sites, etc. from the Sites menu.

To add a new site
1. In the [Network Manager > Sites ] menu, open the [Add New] button.

Enter the site address, site title, and administrator email, and click the Add Site button.
A list of the sites that you have added is created as follows:

You can save settings such as information, users, themes, and settings in the detailed screen of the site you created.
You can visit each site and save the settings that are required to create the site from the dedicated administrator screen for each site.

[Note]
* Each site has an admin screen and needs to be created/managed as a separate site.

▼ To change new site theme

After selecting a site, select the theme on the Theme tab and activate it.

[Note]
* Mainadmin manages both my site and network administrators.
* After adding sites, the Site Administrator password can be managed by [Network Administrator > Users > Edit ]
* The plug-in menu is not visible at the site you added.
: Check [Network Administrator > Settings > Network Settings > Plug-in ] at the bottom.*

Network activation
– Theme : will be added to the theme list at multiple sites created.
– Plug-in : Activates collectively at multiple sites created.

Set up multi-site links by theme
1. After activating the theme, select a language from the Appearance > Theme Preferences > Preferences.
User Page Language : Language type of current site
Multisite Language 1 – 5 : Set flags and links that will be visible at the top of the current site.
Link : A list of added sites appears.

2. The icon will be exposed at the top of the main screen of the theme. Click to go to the appropriate language site.

LEAVE A REPLY

Please enter your comment!
Please enter your name here