Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressマルチサイトネットワークのインストールと設定方法

WordPressのマルチサイトネットワークを設定すると、WordPressの個別インストールから複数のサイトを管理できるようになります。この機能は、ダッシュボードを一元管理しながら区切りサイトを運営する必要があるブログ、学校、企業にとって特に便利です。

マルチサイト・ネットワークは、私たち自身のサイトでも使用しており、いくつかのユースケースでコンテンツを整理するのに非常に役立っています。

このガイドでは、WordPressマルチサイトネットワークのインストールとセットアップの手順を説明し、この機能を最大限に活用できるようにします。

step by step tutorial on installing and setting up a WordPress multisite network

包括的な投稿であるため、ナビゲーションを容易にするためにこの目次を追加しました。以下のクイックリンクから、お知りになりたいセクションにジャンプできます:

WordPressマルチサイトの基本

  1. WordPressマルチサイトとは?
  2. WordPressマルチサイトネットワークを利用するメリット
  3. WordPressマルチサイトネットワークを使うことの欠点
  4. WordPressマルチサイト・ネットワークが必要な人とは?

WordPressマルチサイトのインストールとセットアップ

  1. WordPressマルチサイトネットワークの必須条件
  2. マルチサイトネットワークのドメイン構造の選択
  3. ワイルドカード・サブドメインの設定
  4. WordPressマルチサイトのカスタムドメイン設定
  5. WordPressマルチサイトネットワーク機能の有効化
  6. WordPressマルチサイトネットワークの設定

WordPressマルチサイト構成設定

  1. サイトネットワークの設定
  2. マルチサイトネットワークを登録用に開く
  3. 新規サイト設定
  4. マルチサイトネットワークのアップロード設定
  5. プラグインメニュー設定

デフォルトコンテンツ、テーマ、プラグインの設定

  1. WordPressマルチサイトネットワークに新規サイトを追加する
  2. マルチサイトネットワークにテーマとプラグインを追加する
  3. 新規サイトへの初期設定コンテンツの追加

トラブルシューティングとFAQ

  1. WordPressマルチサイトのトラブルシューティング
  2. WordPressマルチサイトに関するFAQ

WordPressマルチサイトネットワークとは?

WordPressマルチサイトネットワークは、WordPressの個別インストールから複数のWordPressブログやサイトを運営・管理することができます。

新規サイトを即座に作成し、同じユーザー名とパスワードで管理することが有効化されます。他のユーザーがサインアップし、あなたのドメイン上にブログやサイトを作成することもできます。

WordPressマルチサイトネットワークには、ネットワーク上の各サイト/ブログをカスタマイズするために使用できる高度な設定が付属しています。

WordPressマルチサイトネットワークを利用するメリット

多くの状況で、WordPressマルチサイトネットワークは、複数のスタンドアロンWordPressサイトを管理するよりも便利です。ここでは、WordPressマルチサイトネットワークを使用する利点のいくつかを紹介します:

  1. ネットワーク管理者として、個別ダッシュボードから複数のサイトを簡単に管理できます。
  2. ネットワーク上の各サイトは管理ユーザーを持つことができます。サイト管理者は自分のサイトだけを管理することができます。
  3. プラグイン/テーマをインストールし、1回のダウンロードで複数のサイトで有効化することができます。
  4. マルチサイトネットワークは更新管理も簡単になります。WordPress、プラグイン、テーマの更新は1つの「マスター」インストールで済みます。

WordPressマルチサイトネットワークを使うことの欠点

WordPressのマルチサイトネットワークを作成しても、複数のサイトを管理するのに役立つとは限りません。

マルチサイト・ネットワークを立ち上げる前に、留意すべきデメリットをいくつか挙げてみよう。

  1. ネットワーク上のすべてのサイトが同じリソースを共有しているため、あなたのネットワークがダウンすると、他のすべてのサイトもダウンする。
  2. 初心者レベルのユーザーがトラフィックやサーバーリソースを管理するのは難しい。サイトの1つが予期せぬトラフィックを受けると、ネットワーク上の他のサイトすべてに影響が及びます。
  3. 1つのサイトがハッキングされれば、ネットワーク上のすべてのサイトがハッキングされる。
  4. WordPressのプラグインによっては、マルチサイトネットワークでうまく動作しない場合があります。
  5. すべてのホスティングサービスプロバイダは、WordPressマルチサイトネットワークを十分にサポートしていないため、オプションが制限されます。これについては投稿の後半で詳しく説明します。

WordPressマルチサイト・ネットワークが必要な人とは?

複数のWordPressサイトを管理しているからといって、マルチサイトネットワークを使い始める必要はありません。

複数のWordPressサイトを個別ダッシュボードから管理するサードパーティ製ツールがある。InfiniteWPや MainWPのようなツールを使えば、サイトを行ったり来たりすることなく、複数のWordPressサイトをひとつ屋根の下で管理することができる。

マルチサイト・ネットワークを構築する意味があるシナリオをいくつか紹介しよう:

  1. 区切りの異なるセクションを持つ雑誌サイト
  2. 拠点や支店ごとにサブサイトを持つビジネスサイト
  3. 部署、場所、地域ごとにWordPressマルチサイトを使用した政府機関や非営利団体のサイト
  4. 複数のサブドメインで運営されているブログのサイトネットワーク
  5. 学校や専門学校では、学部やブログごとにマルチサイトを使用したり、学校のサーバーで学生にウェブサイトを作成させています。

WordPressマルチサイトネットワークの必須条件

WordPressマルチサイトネットワーク上のすべてのサイトは、同じサーバーリソースを共有します。つまり、最も重要なのは優れたWordPressホスティングサービスです。

トラフィックが少ないサイトを2、3個持つだけなら、共有ホスティングサービスが良い設定でしょう。

しかし、マルチサイトネットワークの性質上、サイトが大きくなるにつれ、通常VPSホスティングサービスまたは専用サーバーが必要になります。

我々は、彼らが共有ホスティングサービスとVPS /専用サーバーを提供していますので、Bluehostをお勧めします。彼らはまた、WordPressの公式ホスティングサービスのパートナーの一つです。

Bluehost website

もし別の方法をお探しなら、SiteGroundと WP EngineもWordPressマルチサイトネットワークに優れたサービスを提供しています。

ホスティングサービスとは別に、WordPressのインストールと FTPを使ったファイル編集の基本的な知識が必要です。

マルチサイトネットワークのドメイン構造の選択

WordPressマルチサイトネットワークでは、サブドメインまたはサブディレクトリを使用して新しいサイトを追加できます。

サブドメインの例:
http://site1.example.com

サブディレクトリの例:
http://example.com/site1/

サブドメインを選択した場合は、サーバーにワイルドカード・サブドメインを設定する必要があります。次のステップでその方法を説明します。

一方、ネットワーク上のサイトにサブディレクトリやパスベースのURLを選択した場合は、次のステップを省略できる。

ワイルドカード・サブドメインの設定

ワイルドカードサブドメインは、ドメイン名の下にプレースホルダーサブドメインを作成します。このプレースホルダー・サブドメインを使用して、すでに定義していないサブドメインをマッピングすることができます。

この設定により、WordPressマルチサイトが独自のサブドメインを使用して新しいサイトを作成することが有効化されます。

マルチサイトネットワーク上のサイトにサブドメインを使用する場合は、ワイルドカードサブドメインを設定する必要があります。

我々はBluehostでそれを行う方法を説明します。しかし、基本的なプロセスは、すべてのホスティングサービスに同じです。

まず、WordPressホスティングアカウントのダッシュボードにログインする必要があります。Websitesの下にあなたのサイトを見つけ、「Settings」ボタンをクリックします。

Bluehost site settings

サイトの設定ページが開きますので、「高度な設定」タブに切り替えてください。

そこからcPanelセクションまでスクロールダウンし、「管理」ボタンをクリックします。

Bluehost cPanel under Advanced site settings

これにより、cPanelダッシュボードが起動します。

ドメイン」セクションまでスクロールダウンし、「ドメイン」をクリックする。

Bluehost cPanel domains

すると、ホスティングサービスアカウント上のドメインとサブドメインのリストが表示されます。

続行するには、「新規ドメインを作成」ボタンをクリックする必要があります。

Bluehost cPanel new domain

次の画面で、Domainフィールドの下にワイルドカード・サブドメインを追加する必要があります。

ワイルドカードサブドメインは、アスタリスク記号の後にドットを付け、ドメイン名を指定します。このように:

*.example.com

example.comをあなたのドメイン名に置き換えることをお忘れなく。

Bluehost cPanel wildcard subdomain

ドキュメント・ルート・フィールドは、ワイルドカードと一致するように自動的に入力されます。

送信」ボタンをクリックするだけで、ドメイン設定が保存されます。

あなたのホスティングサービスアカウントは、サブドメインを持つWordPressマルチサイトをサポートする準備が整いました。

サイトごとのカスタマイザー・ドメインの設定

WordPressマルチサイトでは、マルチサイトネットワーク内の各サイトに異なるドメインを設定することもできます。

カスタマイザーを設定するには、ドメインマッピング機能を使用し、ドメイン登録業者のアカウントでネームサーバーのレコードを更新する必要があります。

Manage sites

異なるドメインでWordPressマルチサイトを作成する方法について、詳細なステップバイステップのガイドを作成しました。

WordPressマルチサイトネットワーク機能の有効化

マルチサイトネットワーク機能は、各WordPressインストールにビルトインされています。使用するには、通常と同じようにWordPressをインストールしてセットアップするだけです。

その後、マルチサイト機能を有効化するだけです。既存のWordPressサイトでもマルチサイト機能を有効化することができます。

マルチサイトを有効化する前に、WordPressサイトの完全なバックアップを作成することを忘れないでください。

次に、FTPクライアントまたはcPanelファイルマネージャを使ってサイトに接続し、wp-config.phpファイルを開いて編集します。

以下のコードをwp-config.phpファイルの/*の直前に追加する必要があります。 以上で編集は終了です!ハッピー公開する。*/ の行に追加します:

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

これが完了したら、wp-config.phpファイルを保存してサーバーにアップロードします。

このコードは、WordPressサイトのマルチサイト機能を有効化するだけです。有効化した後も、マルチサイトネットワークをセットアップする必要があります。

WordPressマルチサイトネットワークの設定

WordPressサイトのマルチサイトネットワーク機能が有効化されたので、いよいよネットワークを設定します。

既存のWordPressサイトにマルチサイトネットワークをセットアップする場合は、サイトのプラグインをすべて無効化する必要があります。

プラグイン ” インストール済みプラグインのページにアクセスし、すべてのプラグインを選択してください。次に、「一括操作」ドロップダウンメニューから「無効化」を選択し、 「適用」ボタンをクリックしてください。

Deactivate all plugins

ツール ” ネットワークセットアップのページに進んでください。

ここでは、マルチサイトネットワークを設定することができます。

WordPress multisite network setup

サイトネットワークのセットアップ画面で、サーバーにApacheのmod_rewriteモジュールがインストールされている必要があることがわかります。このモジュールは、すべての最高のWordPressホスティングサービスプロバイダにインストールされ、有効化されています。

次に、サイトネットワークで使用するドメイン構造(サブドメインやサブディレクトリなど)をWordPressに伝える必要があります。

その後、ネットワークのタイトルを入力し、「Network Admin Email」フィールドのメールが正しいことを確認します。

インストール」ボタンをクリックして続行します。

WordPressは、wp-config.phpと.htaccessファイルにそれぞれ追加するコードを表示します。

Add WordPress multisite configuration rules to wp-config and .htaccess files

FTPクライアントまたはcPanelのファイルマネージャを使ってコピー&ペーストしてください。

まず、wp-config.phpファイルを編集し、先のステップで追加した行のすぐ下にコードを貼り付けます。

次に、.htaccessファイルを編集し、.htaccess内の既存のWordPressルールをコピーしたWordPressマルチサイトのコードに置き換える必要があります。

変更を保存し、編集したファイルをサーバーに再アップロードすることを忘れないでください。

完了したら、マルチサイトネットワークにアクセスするためにWordPressサイトに再ログインする必要があります。

サイトネットワークの設定

マルチサイトネットワークのセットアップが完了したので、次はそのネットワーク設定を行います。

まずWordPressサイトの管理エリアにログインします。

その後、ネットワーク設定の変更、新規サイトの追加、その他の設定を行うには、「ネットワーク・ダッシュボード」設定に切り替える必要がある。

管理ツールバーの「マイサイト」メニューにマウスオーバーすると、フライダウンのポップアップが表示されます。ネットワーク管理 ” ダッシュボードをクリックしてください。

WordPress multisite network admin dashboard

マルチサイトネットワークダッシュボードに移動します。マルチサイトネットワークを管理するための新しいメニュー項目があることに気づくでしょう。

また、「Right Now」ダッシュボード・ウィジェットが表示され、新規サイトを作成したり、新規ユーザーを追加したりすることができます。

Multisite admin area

ネットワーク設定を行うには、管理者サイドバーの「設定」リンクをクリックします。

ネットワーク設定ページの最初のオプションは、サイトタイトルと管理者メールアドレスを設定することです。これらのフィールドには、セットアップ時に入力したサイトネットワーク名と管理者メールアドレスが自動的に入力されます。

WordPress multisite general settings

マルチサイトネットワークを登録用に開く

ネットワーク設定ページの「登録設定」セクションは、おそらくネットワーク設定全体で最も重要な設定でしょう。

初期設定では、ユーザー登録もサイト登録もネットワーク上では無効化されている。

サイトをユーザー登録制にするか、既存ユーザーだけに新規サイトの作成を許可するか、ユーザー登録とサイト登録の両方を許可するかを選択できます。

Allowing user and site registration on a WordPress multisite

マルチサイトネットワークを登録に開放している場合、「登録通知」オプションの隣にあるボックスにチェックを入れることができます。

これにより、新しいユーザーやサイトが登録されるたびにメール通知を受け取ることができます。

個々のサイト管理者が自分のサイトに新規ユーザーを追加できるようにしたい場合は、「新規ユーザーを追加」オプションの隣にあるチェックボックスをオンにします。

Additional multisite settings

限定メール登録オプションでは、サイトまたはユーザー登録を特定のドメインのメール・アドレスに限定することができます。

これは特に、ユーザーやサイトの登録や作成を組織内の人だけに許可したい場合に便利です。

同様に、特定のドメインの登録を禁止することもできます。

新規サイト設定

新規サイト設定」セクションでは、マルチサイトネットワーク上に作成された新規サイトの初期設定を行うことができます。

これらの設定で、ウェルカムメールや初期設定の最初の投稿、ページ、コメントのコンテンツを変更することができます。

New site settings for WordPress multisite

ネットワーク管理者であれば、いつでもこれらの設定を変更することができます。

マルチサイトネットワークのアップロード設定

サーバーリソースの使用状況を監視することは重要です。アップロード設定」では、サイトがアップロードに使用できる総容量を制限することができます。

初期設定は100MBで、少なくとも100枚の写真をアップロードするのに十分な容量です。ディスク容量に応じて、この容量を増減できます。

WordPress multisite uploads settings

初期設定のアップロードファイルの種類は、画像、音声、動画、PDFファイルです。doc、docx、odtなどのファイルタイプを追加することもできます。

その後、ユーザーがサーバーに非常に大きなファイルをアップロードできないように、ファイルサイズの制限を選択することができます。

プラグインメニューの設定

次に、メニュー設定にジャンプすることができます。ネットワークサイトのプラグインセクションの管理者メニューを有効化することができます。

WordPress multisite plugin menu

有効化すると、各サイト管理者にプラグインメニューが表示されます。サイト管理者はプラグインを有効化したり無効化したりできますが、新しいプラグインをインストールすることはできません。

すべての設定に満足したら、「変更を保存」ボタンをクリックします。

WordPressマルチサイトネットワークへの新規サイトの追加

WordPressマルチサイトネットワークに新規サイトを追加するには、管理ツールバーのマイサイト ” ネットワーク管理メニューの下にある「サイト」をクリックするだけです。

Managing sites on a WordPress multisite

現在のマルチサイトインストールのサイトのリストが表示されます。初期設定では、プライマリサイトが WordPress マルチサイトネットワークの唯一のサイトとして表示されます。

新規サイトを追加するには、上部の「新規追加」ボタンをクリックします。

Adding a new site in a WordPress multisite network

新規サイトの追加」ページで、サイトのアドレスを入力します。完全なアドレスを入力する必要はなく、サブドメインまたはサブディレクトリとして使用したい部分のみを入力してください。

次に、サイトタイトルを追加し、サイト管理者のメールアドレスを入力する。

Adding new site details

現在マルチサイトネットワークの管理に使用しているメールアドレス以外の管理者メールアドレスを追加することができます。

他のユーザーがそのメールアドレスを使用していない場合、WordPressは新しいユーザーを作成し、入力したメールアドレスにユーザー名とパスワードを送信します。

完了したら、「サイトを追加」ボタンをクリックするだけです。

新しいサイトがWordPressマルチサイトネットワークに追加されます。また、ネットワーク管理者として新規サイト登録メールが届きます。

新規ユーザーを作成した場合、そのユーザーにはパスワードの設定とログイン記録の方法が記載されたメールが送信されます。

マルチサイトネットワークにテーマとプラグインを追加する

デフォルト設定では、マルチサイトネットワークの個々のサイト管理者は、テーマやプラグインを自分でインストールすることはできません。

ネットワーク管理者として、それぞれのプラグインやテーマをインストールし、ネットワーク上のすべてのサイトで利用できるようにすることができます。

マルチサイトネットワークへのテーマのインストール

テーマを追加するには、マイサイト ” ネットワーク管理 ” テーマページに移動します。

WordPress multisite themes

このページでは、現在WordPressマルチサイトにインストールされているテーマの一覧が表示されます。

テーマの下にある「ネットワーク有効化」オプションをクリックすることで、他のサイトでもテーマを利用できるようにすることができます。

テーマの下にある「ネットワーク無効化」リンクをクリックして、テーマを無効化することもできます。ネットワーク無効化オプションは、テーマが有効化されている場合にのみ表示されることに注意してください。

新規テーマを追加するには、画面上部の「新規追加」ボタンをクリックし、通常通りWordPressテーマをインストールします。

新規テーマをインストールしたら、「ネットワーク有効化」オプションでネットワーク上の他のサイトでも利用できるようにします。

どのテーマをサイトネットワークで利用できるようにするか、お勧めが必要な場合は、私たちが選んだ最高のWordPressテーマをご覧ください:

マルチサイトネットワークのデフォルトテーマの設定

テーマをいくつか追加した場合でも、WordPressは各新規サイトのデフォルトWordPressテーマを有効化します。

新規サイトのデフォルトテーマを別のテーマにしたい場合は、wp-config.phpファイルに以下のコードを追加する必要があります:

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

your-themeをテーマ名に置き換えてください。テーマのフォルダー名を使用する必要がありますが、これはFTPまたはファイルマネージャーを使って/wp-content/themes/フォルダーを見ればわかります。

マルチサイトネットワークのプラグインのインストール

同様に、My Sites ” Network Admin ” Pluginsページにアクセスしてプラグインをインストールし、各プラグインの下にある’Network Activate’リンクをクリックしてマルチサイトネットワークで有効化することができます。

Network activate plugins

ここでは、すべてのサイトにお勧めのWordPress必須プラグインをいくつかご紹介します:

その他のおすすめプラグインについては、すべてのサイトに必須のWordPressプラグインのリストをご覧ください。

注:「ネットワーク設定」でサイト管理者用のプラグインメニューオプションを有効化した場合、サイト管理者はインストールしたプラグインを自分で有効化または無効化することができます。ただし、新規プラグインの削除やインストールはできません。

マルチサイトへの初期設定コンテンツの追加

WordPressのデフォルトでは、マルチサイトネットワークの各サイトにいくつかの初期設定を追加および編集することができます。設定 ” ネットワーク設定ページに行き、’新規サイト設定’セクションにこのコンテンツを追加することができます。

New site default content in WordPress multisite

初期設定の投稿、ページ、コメントのコンテンツを編集することができます。初期設定をサイト管理者にとってより便利なコンテンツに置き換えることをお勧めします。

しかし、各新規サイトに初期設定を追加したい場合はどうすればいいのでしょうか?

WordPressの初期設定では、新規サイトに追加のデフォルトコンテンツを作成するオプションはありません。そうしたい場合は、WordPressマルチサイトにカスタムコードを追加する必要があります。

この例では、新規サイトごとに作成される初期設定ページを追加します。このコードをメインサイトのfunctions.phpファイルに追加するか、メインサイトのWPCodeプラグインを使用して追加することができます:

add_action('wpmu_new_blog', 'wpb_create_my_pages', 10, 2);
  
function wpb_create_my_pages($blog_id, $user_id){
  switch_to_blog($blog_id);
  
// create a new page
  $page_id = wp_insert_post(array(
    'post_title'     => 'About',
    'post_name'      => 'about',
    'post_content'   => 'This is an about page. You can use it to introduce yourself to your readers or you can simply delete it.',
    'post_status'    => 'publish',
    'post_author'    => $user_id, // or "1" (super-admin?)
    'post_type'      => 'page',
    'menu_order'     => 1,
    'comment_status' => 'closed',
    'ping_status'    => 'closed',
 ));
   
restore_current_blog();
}

同じコードを少し修正するだけで、新規サイトの初期設定投稿を作成することができる。以下のコードをご覧ください:

add_action('wpmu_new_blog', 'wpb_create_my_pages', 10, 2);
  
function wpb_create_my_pages($blog_id, $user_id){
  switch_to_blog($blog_id);
  
// create a new page
  $page_id = wp_insert_post(array(
    'post_title'     => 'A sample blog post',
    'post_name'      => 'sample-blog-post',
    'post_content'   => 'This is just another sample blog post. Feel free to delete it.',
    'post_status'    => 'publish',
    'post_author'    => $user_id, // or "1" (super-admin?)
    'post_type'      => 'post',
 ));
   
restore_current_blog();
}

WordPressマルチサイトのトラブルシューティング

WordPressマルチサイトネットワークのセットアップで最も一般的な問題は、ワイルドカードサブドメインの誤った設定とドメインマッピングの問題です。マルチサイトを設定する前に、ウェブホスティングがワイルドカードサブドメインをサポートしていることを確認してください。

以下は、その他のよくある問題とその迅速な解決策です。

マルチサイトインストールにおけるログインの問題の修正

よくある問題として、サブディレクトリを持つWordPressマルチサイトを使用している場合、wp-config.phpファイルに必要なコードを追加しても、サイトの管理エリアにログインできないユーザーがいます。

この問題を解決するには、wp-config.phpファイルの以下の行を探してください:

define('SUBDOMAIN_INSTALL', false);

さて、これを次の行に置き換えるだけだ:

define('SUBDOMAIN_INSTALL', 'false');

未確認ユーザーの検索

サイトネットワークに登録したものの、有効化したメールを受け取っていないユーザーを見つけられないという問題もあります。

この問題を解決するには、WordPressで保留中の未確認ユーザーを見つける方法をご覧ください。

マルチサイトから独自のWordPressインストールにサイトをエクスポートする

後で、あなたや他のサイトオーナーが、マルチサイトから別のWordPressインストールにサイトをエクスポートしたいと思うかもしれません。これは簡単にできます。ステップバイステップの手順については、WordPress マルチサイトから個別インストールにサイトを移動する方法のガイドを参照してください。

WordPressの一般的なエラーとその修正方法についての究極のガイドもブックマークしておくとよいでしょう。これを読めば、WordPressのよくある問題を素早く修正する時間を大幅に節約できます。

WordPressマルチサイトネットワークに関するFAQ

多くのユーザーから、WordPressマルチサイト・ネットワークや、より効率的な利用方法について多くの質問が寄せられています。以下は、最もよくある質問とその回答です。

1.マルチサイト・ネットワークがあれば、サイトの管理がしやすくなりますか?

正直なところ、答えはあなたの使用シナリオによる。

例えば、もしあなたのサイトが互いに関連していないのであれば、InifiteWPのような複数サイト管理ツールを使う方が良いでしょう。

しかし、レストランチェーンや大学、オンラインマガジンなど複数のサイトを管理する場合は、WordPressのマルチサイトの方が効率的です。

2.WordPressマルチサイトはサイトの読み込みを速くしますか?

繰り返しますが、それはいくつかの要因によります。サーバーリソースが豊富で、より良いWordPressホスティングサービスを利用すれば、マルチサイトをより高速に実行することができますが、このようなリソースがあれば、個々のWordPressサイトもより高速に実行されます。

しかし、共有ホスティングサービスアカウントでは、トラフィックの急増によりメモリ使用量が増加し、マルチサイトネットワーク上のすべてのウェブサイトの速度が同時に低下します。マルチサイトの速度を改善するには、WordPressのパフォーマンスと速度の最適化に関するガイドを参照してください。

3.WordPressマルチサイトにオンラインストアを追加できますか?

はい、WordPressマルチサイトネットワークにオンラインストアを追加することができます。ほとんどの場合、WordPressマルチサイトと互換性のあるWooCommerceのようなeコマースプラグインを使用することになるでしょう。

4.WordPressマルチサイトに「xプラグイン」をインストールできますか?

WordPressプラグインの中には、WordPressマルチサイトと互換性がないものがあります。通常、プラグインの作者はプラグインのサイトにその旨を記載しており、マルチサイト上で動作しない可能性のあるプラグインのインストールを避けることができる。しかし、言及されていない場合は、マルチサイトと互換性があると考えてよい。

5.マルチサイトネットワーク全体でユーザーログインと権限グループを共有するにはどうすればよいですか?

初期設定では、あるサイトに登録されたユーザーは、同じネットワーク上の別のサイトに登録したり追加したりすることはできません。それは、共有WordPressデータベースにすでに登録されているからです。しかし、他のサイトではユーザーグループの権限を持っていません。

WP Multisite User Syncのようなサードパーティのプラグインを使えば、サイトネットワーク上でユーザーを同期させることができる。ただし、サイトの管理者権限を誰かに与えてしまう可能性があるので、注意が必要です。

この投稿が、WordPressマルチサイトネットワークのインストールとセットアップの方法を学ぶのにお役に立てば幸いです。また、異なるドメインでWordPressマルチサイトを作成するチュートリアルや、専門家が選んだ最高のWordPressマルチサイトプラグインもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

アバター

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

250件のコメント返信を残す

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Joseph

    Subdirectory for creating new site is missing. only sub domain

  3. Colleen

    Hi, I am new to WP and learning in baby steps. My husband and I have several websites whose website builder went out of business. So we have a host and domain names. I opened up a wordpress account and am in the process of transferring over one of my sites.
    But, since I read your article above, it looks like a multi-site network might not be best, but I cannot find any info online on how to open up a new and different WP account with a different website. and I would have to do this for each of our five websites. They are all different kinds of sites that do not relate to each other at all.
    what do you suggest? thank you

    • WPBeginner Support

      Hi Colleen,

      You can sign up for a hosting provider and host multiple websites on the same hosting account. You can also add multiple domains and install multiple instances of WordPress for each website under the same hosting account.

      However, if your websites get more than you should consider VPS hosting or managed WordPress hosting.

      管理者

  4. Joao Cerca

    After following all the instructions on this post, I always get the same problem with the themes. I have a theme for the main website and it works perfect, even the theme selector area is fine.

    However, the 2nd and the other websites created after are completely void of any style, also the theme selector has nothing. I cannot find any proper solution for my problem.

    • WPBeginner Support

      Hi Joao Cerca,

      You can go to Network Admin > Themes page to install themes for other sites on your network. You will need to click on the ‘Enable Network’ button below that theme. After that you can go to your other sites and activate theme you want to use on those sites.

      管理者

  5. Dese Abebe

    When i create multisite on hostgator, i got a warning message to remove www. But i want my websites to look like www.example.com/multisites.
    So how can i do like this? Please wpbeginer give me a solution!

  6. Max Dai

    I deactivated all plugins at once and suddenly my site stopped working. Browser says “redirected you too many times”. How to solve this?

  7. Ryan

    The problem I am having is that after I create a new subdomain site2.example.com so that I can effectively “add new site” in wordpress, I am unsure how to delete the old “site1.example.com” and point the url to subdomain 2. The second subdomain doesn’t show up in my file structure in my cpanel. So how does one simply “export content from first site, import it into new site…and then change web addresses over?” There seems to be no easy answer online anywhere.

  8. Jacob Conway

    I need to allow users to sign up for a site using multi site but also need my main site duplicated for the user. Can this be done? If so, how?

  9. Jeanette Folkes

    Great article and super easy steps to follow. When I create the multisite, all I’m getting is Index of / and a directory listing, which at the moment is just cgi-bin. Originally I was getting a site not found error and added FollowSymLinks to my .htaccess file and now just a directory listing.

    Any suggestions how to fix that? Using subdomains as it was an existing site. have updated the wp-config file and .htaccess. Hosting confirms they meet all requirements (mod_rewrite, etc). Just not sure where to go from here. Feels like the site is not finding the Wordpress installation.

    Thanks so much for any suggestions!

  10. Cristiano

    Hi,
    Your post is VERY interesting and well written. Thanks for that.

    Then, my question: Can a multisite network be installed itself in a subdomain?
    (I would use subdirectories for the individual sites of the network)

    Thanks a lot!

    • WPBeginner Support

      Hi Cristiano,

      Yes, you can install a multisite network on a Subdomain and use subdirectories for each site on the network.

      管理者

      • Cristiano

        Hi,
        Thanks for your reply.
        I just tried and it works perfectly.
        Once more congratulations for this article.
        BR
        Cristiano.

  11. Amir hanif

    Is there an option to implement woocomerce in this multisite thing, the meaning of this is that if one subdomain site sells an item it will show the order on the subdomain site as wel as one the admin site wich can make other sites etcc.

    Its useful to know if that part would work so there can be one place where all the orders of the subdomains collect

  12. Sonia Woolf

    All my dashboards go back to the original site – and any changes are done on the original site…I can’t see where I went wrong.

    • Taylor

      I am having this same issue. Have you found the solution yet?

  13. Harsh Nagda

    Hi,

    After modifiying wp-config.php file and .htacces file i am getting this error.

    “One or more database tables are unavailable. The database may need to be repaired.”

    What can be done?

    Thanks.

  14. Laura

    Hi,
    I noticed at least a couple of others running into this same issue, but no answers: When I try to view my newly-created additional sites, I get a 403 error – no permission to view. What did I miss? Dashboards all work fine, I just can’t actually view the sites themselves.

  15. Wouter

    I would like to categorize my self hosted blogs (individual domains) and then let my blog writer only access blogs from a certain category so he can maintain them with fresh content. How do I do that? For categorization I already found this plugin:

    So now only to be able to give users permission to access blogs form a category.

  16. Ankit Dhadwal

    I have created a subdomain but its path is not public_html/ ……
    When i have created a sub domain the steps that I followed were
    1. Gave name to my new subdomain
    2. Then clicked on create button.

    Automatically a path was created blog.xyz.com

    I have check this in your screenshot and on youtube also but everywhere the path is public_html/
    but why my path is different???
    Please help me in this and also can you help me installing Wordpress in my subdomain.

    • WPBeginner Support

      Hey Ankit,

      It is OK, your path can be different depending on how your web hosting company has configured their servers.

      管理者

  17. Vishnu Goyal

    Should one use sub-domains or sub-directories? What are the pros and cons of both? Please add a small guidance on this issue in this article.

    Thanks!

  18. smart kutter

    hello, thanks so much for your article has really help but how can i access the wp-admin of new domain on my multisite?.. is telling me Access Forbidden with this error massage:
    Access forbidden!

    You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.

    If you think this is a server error, please contact the webmaster.

    Error 403

    localhost
    Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.

  19. Erik

    Is there any way to have a set theme already created like content, design, etc. and when a new user signs up and creates an new site via registering that it automatically has that pre-built website page for them?

  20. Sara

    Hey, thanks for this description.
    Can you also name me a gallerie plugin which works on a multisite with up to four websites?
    I need something where I create one gallery and use the pictures on every website to not upload them several times.
    Appreciate your help!
    Sara

  21. Ameer Hamza

    sir i can’t deactivate the plugins is there any solutions to do that?

  22. rohit

    hi,

    i want to know that where to upload existing themes. actually i have 10 single sites so i want to implement one multisites. all the single site have same theme but but they have different css. so how to include all 10 themes in multisites for single site.

  23. Wenda

    OK. First. THANK YOU! it’s amazing that you published this full and comprehensive post about creating the wordpress multi-users. I am having a problem finding the one step that shows whether I want a subdomain versus subdirectory. Maybe it’s because I cant find the apache installation so I can’t see find the mod_rewrite. I haven’t gotten past that part of your tutorial (besides enabling the registration) I suppose I can live with the directory.. but I’d REALLY REALLY like the subdomain! :) I setup the wildcard, but I don’t have a “tools” option in the network dashboard and no option to choose between subdomain or directory.

  24. Hamza

    Hi,
    is this possible in wordpress that we can post on 1 website can also be posted on other wordpress website?
    note: not with iframe.
    thanks

  25. SAMITH TON

    Hi,
    I just set up multiple WordPress websites following your guides but I need to use domain sub directory in multisite network. However, after completing the step-by-step guide, it shows only Subdomains for adding new sites in the Network Admin. How can we have another way to add wildcard subdirectory instead of subdomains? Please provide me the tutorials to follow.

    Thanks so much for helpful articles posted!

    Best,

    SAMITH TON

  26. Tony

    I require my users to login to the site to use the services. When I convert my site to multi-site, will my users still be able to go to the base url (www.myblogsite.net) to login – or will they have to go to the subdomain/subdirectory of the site to login in? In other words, if they go to the base url (which requires the username and password) does WordPress recognize each individual user – and then redirect them to the appropriate subdomain/subdirectory that they belong to?

  27. Mayuna

    Thank you for sharing this great article.
    I succeed to setup all steps above, but next, how could I access to site1 dashboard?
    ‘site1.domain.com/wp-admin’ is not found.

    Could you give me an advise..?

  28. Edmond

    Dear WP Begginer

    I created Multisite. When i create sub domain it allows it but the problem i cant access the subdomain site. When i visit pointtheme.edmoblogs.com/wp-admin/ i get an error. I asked my web hosting if i configured wild-card well and they checked they say NO problem on their side.

    When first i install the multisite, It was installed in a sub-directory. I accessed wp-config.php to change define(‘SUBDOMAIN_INSTALL’, ‘false’);” to define(‘SUBDOMAIN_INSTALL’, ‘TRUE’);”.

    Should i chance the .HTACCESS or what can i do?

    • Jared latigo

      Not sure if you got this resolved but you can’t swap it once you setup the network. It is how it is setup in the first place. I’m not sure why but I’ve found that to be the case for me. You will have to reinstall the network unfortunately. Hope that helps.

  29. Chris

    I followed the basic instructions for adding the

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

    to the wp-config.php file in my server through FTP but even after I save the changes and refresh my wordpress site I do not see a NETWORK SETUP option in my TOOLs section.

    I have already deactivated all of my plugins to allow for this and given ample time to let changes take effect.

    Thoughts on why this very basic first step hasn’t worked? The php changes were saved in the files on the server…confirmed

    • Manel

      Me too.
      Please, we need a solution

    • Angie

      Did anyone find a resolution to this? I am having the same problem and am not sure what to try.

      Thank you!

    • Joao Cerca

      Check the quotas on the syntax. Can be that while copying the syntax, the system is putting ` instead of ‘.
      It happened to me once.

      • R. Arms

        Thank You!!! I’ve been beating my head against the proverbial wall trying to figure out why I couldn’t get this to work. I went so far as to uninstall and reinstall everything trying to get this to work.

        I never noticed that they weren’t plain quotes.

    • Ahmad

      Make sure you paste the code you are supposed to paste in wp-config.php above the line that reads [ /* That’s all, stop editing! Happy blogging. */ ] in wp-config.php

  30. Tyler

    After following this guide on a fresh wordpress installation, the addon sites do not load. I am getting a 404 error when i try to access the addon sites website/dashboard. The main website seems to be working just fine. Any ideas?

  31. Carrie

    I already have a working installation of wordpress (.org). I used for a class project.

    What the class did not teach was…now I have a client who needs a site built – it’s a new site they never had one. So how do I do this and where do I go? I had to use MS webmatrix for the project. I am totally lost and confused. Do you have tutorials on how to do this? I cannot find this anywhere?

    Do you have these tutorials and if not can you make them…

    Thank you…I’m totally frustrated

  32. Dan Snyder

    I want to build a site for a store chain that has multiple stores. If I use multisite and make a site for each store can I get the main theme to copy directly to each store with it’s graphics, so all of them look alike without configuring each store? Can I use WooCommerce and get it to show the inventory of each store, which will be different than other stores?

    thanks,

    Dan

  33. Shetty

    I migrated two of my sites to siteground under single plan. They have used multi site install those. The main site is working correctly, but i am facing issues with the second site

    It looks like i have an issue with the Multisite installation.

    For instance, when i tried to access the Tools ->Network I get the following message
    Warning: Please deactivate your plugins before enabling the Network feature.

    How do i enable the network, do i loose the data for the second site ?

    I also have separate database for both sites. users accounts are also different

    Is it correct ?

  34. Jaco Smith

    Good day, I am in urgent need of some assistance! I have one site in my WordPress Multisite Network, but I want to change that to a single install of Wordpress!

    Please urgently assist!

  35. James

    Excellent article, only spoilt by my ineptitude in following it!
    I must have misunderstood the bit about Registration Settings, as I left the box ‘Registration is disabled’ as ticked. I thought that that meant any NEW registrations would be disabled, and that as I was already registered, that was ok. Sadly, on trying to access the site, I find that my own registration is now disabled!
    How do I restore the situation and access my site?

    • James

      Additional to the above. I read the comment about “replacing

      define(‘SUBDOMAIN_INSTALL’, false);

      line in wp-config.php file with

      define(‘SUBDOMAIN_INSTALL’, ‘false’);”

      Only problem is that I cannot see this line anywhere in my wp-config.php file. There are all sorts of define ‘Authentication Unique Keys and Salts’ (whatever those are), plus Define WPLANG WP DEBUG ABSPATH, as well as the ‘WP_ALLOW_MULTISITE’ inserted as the instructions above, but no SUBDOMAIN_INSTALL

      • Ben

        Under Settings -> Network Setup – you should find the code to paste into your wp-config.php file.

  36. Victor Adeniyi

    hello please mine says

    The requested URL /wp-admin/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  37. Habib Manjotha

    Is last paragraph right? I think, true should be 2nd line of ccodeode.
    “Another common issue is that when using WordPress Multisite with sub-directories, some users are unable to login to the admin area of their sites after they add the required code in wp-config.php file. To fix this, try replacing
    define(‘SUBDOMAIN_INSTALL’, false);
    line in wp-config.php file with
    define(‘SUBDOMAIN_INSTALL’, ‘false’);.
    We hope this article helped you install and setup WordPress multisite network.”

  38. Sansar Lochan

    Hi WpBeginner. I am a regular follower of your posts. I was reading your this important article and I found I have done mistake somewhere. But you can better guide me where I am wrong.

    Actually I run a wordpressblog in Indian mother tongue. Later I thought to write in english, so instead of making subdomain, I preferred making subdirectory for the english version of my blog. & I successfully installed WordPress in my subfolder at

    But I am not using multisite option as you mentioned in this blog. I am logging in with two different wp-admin credentials for my main domain and subfolder. Subfolder has of course different htaccess file and robots txt

    Now I want to know from you, am I doing anything in wrong that is damaging my SEO? Traffic coming in my subfolder will not be counted for my main domain? Should I use multisite option?

    Thanks for your patience to read my long comment. I hope to get a knowledgeable reply from your end.

    • WPBeginner Support

      Many websites do that, we don’t think there is anything wrong with this approach.

      管理者

  39. Imran Mohammad

    Hi,

    Awesome topic,
    I want to run multiple blogs with separate domains using WordPress. I have multiple domain hosting account at hostgator.in. Currently i am running my personal website developed in stranded html and css. How to manage both wordpress multiple bolgs and my personal website together.?

    Thanks in Advance.

  40. Charles

    Really Informative Article.

  41. Marlon

    Great tutorial. Congrats mate.
    Unforntunately, I’ve got a problem.I’ve installed but the subsite recently created isn’t opening. the error message is “incorret redirect”.
    Do I need to install other wordpress in the subfolders when using with sub-directories ? any idea?

    thank

  42. Doug Ithier

    Hi, great article!

    I created the multi site but can’t login to the admin of the new site. I notice you write:

    To fix this, try replacing
    define(‘SUBDOMAIN_INSTALL’, false);
    line in wp-config.php file with
    define(‘SUBDOMAIN_INSTALL’, ‘false’);.

    But my line says:

    define(‘SUBDOMAIN_INSTALL’, true);

    I have changed to false and tried using the comma’s but no luck. Any other ideas?

    I notice no folders have been added to my server to provide for the new site?

    I am just trying to create a one page website for my mate using my DIVI theme and plugins, as well as manage it for him. My hope is to point his new domain name in DNS settings to the web page I create?

    Thanks Doug.

  43. Manisha saini

    Hi
    I created multisite but I want to open onclick button in main site and open subsite and it’s information when user visit the site.how it will be done..

  44. Edmond

    Hey, Thanks for this tutorials. I followed all and my network names is up and running.

  45. Gcod

    Great article!

    Would I be able to display a post from one site on the other?
    Have links from one site pointing to another? Are they sharing the same database?

  46. Glenn lloyd

    hello I followed all the steps for installation but I am having a template issue with a test fashion store site here mccsites.com/pussa. the page is not showing up like it should.
    thanks

  47. Bernard Brillo

    Question, wordpress multisite do this.
    *create a clone copy of my main website to a subdomain
    *updates on main website will authomatically reflect on the clone copy in the subdomain

    I want to achieve this because i want a different theme on my clone copy website but i don’t want to manually republish the post on my main website to the clone site

  48. Mark

    Hi there used this tutorial to create a multisite network worked perfectly. Thanks! But it raised another question. That question would be is it possible to run multiple frameworks on the same multisite network? If so do you have a tutorial that covers this topic?
    We have themes that are designed for both equity framework and genesis framework and would like to demo the themes on the same multisite network.
    Thanks for any info you can offer on this topic

  49. Sabelo

    Hi
    I created a multisite, problem when I duplicate or creating a subdomain site it does not show product categories on my landing page. Please help me I new to WP, here is my site url: also here is the subdomain site I created that not showing product categories:

    Thank you

    • WPBeginner Support

      Please make sure that there is at least one product in each category. WordPress by default does not show empty categories.

      管理者

  50. Sabelo Nxumalo

    Hi
    I created a multisite, problem when I duplicate or creating a subdomain site it does not show product categories on my landing page. Please help me I new to WP, here is my site url:

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。