0
0

WordPressでマルチサイトを構築する手順

Posted at

WordPressのマルチサイト化するメリット・デメリット

No. メリット
開発や管理が効率的になる
サーバー容量の節約になる
ドメイン費用を節約できる
No. デメリット
テーマやプラグインによっては未対応
エラーが全ウェブサイトに影響する
ウェブサイトが重くなる

WordPressのマルチサイトの種類

No. 種類
サブディレクトリ型 https://xxx.com/test1
https://xxx.com/test2
https://xxx.com/test3
サブドメイン型 https://test1.xxx.com/
https://test2.xxx.com/
https://test3.xxx.com/
別ドメイン型 https://test1.com/
https://test2.com/
https://test3.com/

WordPressでマルチサイトを構築する手順

1.wp-config.phpを編集

/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );

image.png

2.ネットワークの設定を確認

・1.「ツール」→「サイトネットワークの設置」を開く
・2.  サブディレクトリ型かサブドメイン型を選択
・3.  サイトネットワーク名を入力    
・4.  インストールをクリック       

image.png

3.ネットワークをインストール

2つのファイルに追記する内容が表示されるので、このまま画面を閉じないようにしてください。

image.png

4..htaccessとwp-config.phpに追記

image.png
image.png

5.再度ログインを行う

image.png

6.サブディレクトリ用のサイトを作成

image.png

7.サイトを追加する

画面左上「参加サイト」→「サイトネットワーク管理」→「サイト」をクリック
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0