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マルチサイトから個別インストールへサイトを移行する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressマルチサイトから個別インストールにサイトを移行したいですか?

WordPressのマルチサイトネットワークを運営している場合、サイトの1つを独立したWordPressインストールに移動する必要がある場合があります。

この投稿では、SEOランキングとすべてのコンテンツを保持しながら、WordPressマルチサイトから個別インストールにサイトを簡単に移行する方法を紹介します。

Moving a child site from WordPress multisite

WordPressマルチサイトから個別インストールへサイトを移行する理由

WordPressのマルチサイトは、ユーザーが同じWordPressインストールを使用して複数のサイトを作成できるWordPressのコア機能です。

初期設定ではオフになっていますが、マルチサイトネットワークをセットアップするために簡単にオンにすることができます。

さらに詳しく知りたい方は、WordPressマルチサイトネットワークの作成に関する投稿をご覧ください。

しかし、しばらくすると、マルチサイト・インストール下にある1つまたは複数のサイトが、個別インストールによって恩恵を受けることができると感じるユーザーも出てくるでしょう。

マルチサイトネットワーク上のサイトを個別インストーラに移動する必要がある場合のシナリオをいくつか紹介します。

  • マルチサイト上のWordPressサイトは、より良い検索可視性のためにドメイン名を持ちたいと思うかもしれません。
  • 個々のサイトをそれぞれのインストーラに移動することで、マルチサイトを再構築し、解散したい場合があります。例えば、マルチサイトネットワークで地域サイトを運営している企業が、それを個別インストールに分割したい場合などです。
  • マルチサイトネットワーク上のサイトが、そのサイトグループには適さなくなった。例えば、生徒の個人ブログを自分のサイトに移動したい場合などです。

とはいえ、マルチサイトネットワークから独自のWordPressインストールにサイトを簡単に抽出するために必要な手順は以下の通りです。

ステップ1:スタート

WordPressマルチサイトネットワークからサイトを移動するには、ドメイン名が必要です。

すでに個別サイトをインストールしたいドメイン名を持っている場合は、問題ありません。

区切りのドメイン名を持っていない場合は、新しいドメイン名を登録し、ホスティングサービスアカウントに追加する必要があります。

Domain.comの利用をお勧めします。世界で最も優れたドメイン登録業者の1つであり、初心者に優しいドメイン管理を提供しています。

詳しくは、ドメイン名の登録方法に関する投稿をご覧ください。

または、WordPressインストール用にホスティングサービスとドメイン名を区切りで購入することもできます。

私たちはBluehostを使用することをお勧めします。彼らはホスティングサービスの寛大な割引で無料のドメイン名を提供しています。

基本的に月額1.99ドルで始められる。

ドメイン名とホスティングサービスを取得したら、次はWordPressのインストールです。

WordPressインストールチュートリアルをご覧ください。

重要:WordPressマルチサイトに重大な変更を加えようとしているので、何かをする前にWordPressの完全なバックアップを作成する必要があります。

すべての設定が完了したので、WordPressマルチサイトネットワークから個別インストールにサイトを移動してみよう。

ステップ2:WordPressマルチサイトネットワークの個別サイトをエクスポートする

ビルトインのWordPressインポート/エクスポート機能は、マルチサイトでも個別サイトインストールと同じように機能します。初期設定のツールを使用して、WordPressマルチサイトネットワーク上のサイトからデータをエクスポートします。

まず、移動したい個別サイトのダッシュボードにログインし、ツール ” エクスポート をクリックします。

次に、すべてのコンテンツにチェックが入っていることを確認し、「Download Export File」ボタンをクリックします。

Export single site in a WordPress multisite

WordPressは、すべてのデータを含むXMLファイルを作成し、ダウンロードのためにブラウザーに送信します。

このファイルは後で必要になるので、本当に〜してもよいですか?

ステップ3: 新規ドメインへの子サイトのインポート

子サイトを移動したい新しい場所のWordPress管理エリアにログインし、ツール ” インポートに進みます。インポート画面で、WordPressはいくつかのインポートオプションを表示します。

Install WordPress importer on the new single site

WordPress」の下にある「今すぐインストール」のリンクをクリックする必要があります。

インストーラがインストールされるのを待ち、「Run Importer」リンクをクリックする。

Run WordPress importer

次の画面では、WordPressマルチサイトからダウンロードしたWordPressエクスポートファイルをアップロードするよう求められます。

Choose file」ボタンをクリックしてコンピューターからファイルを選択し、「Upload file and import」ボタンをクリックします。

Upload import file

次の画面で、WordPressはユーザーもインポートするかどうかを尋ねます。何もしなければ、WordPressはすべてのユーザーをインポートします。投稿者を変更したくない場合は、こちらをお勧めします。

また、Import Attachmentsオプションが表示されるので、WordPressが投稿やページから画像をダウンロードできるように、チェックが入っていることを確認したい。

一部の画像やほとんどの画像が取り込まれなくても心配しないでください。後で区切りでインポートできます。

Import settings

送信」ボタンをクリックして次に進みます。

WordPressがコンテンツのインポートを開始します。コンテンツの量にもよりますが、数分かかります。完了すると、「すべて完了しました。楽しんでください。

Importing finished

これですべてです。マルチサイトネットワークの子サイトから個別のWordPressインストールへのデータのインポートは成功しました。まだいくつかやることが残っています。

ステップ4:リダイレクトの設定

カスタムドメインでWordPressマルチサイトを使用していた場合は、リダイレクトを設定する必要はありません。

ただし、WordPressマルチサイトでサブドメインやディレクトリ構造を使用していた場合は、古いURLにアクセスしたユーザーが新しいサイトにリダイレクトされるようにリダイレクトを設定する必要があります。

これには2つの方法がある。WordPressのプラグインを使ってリダイレクトを設定する方法(推奨)と、WordPressの.htaccessファイルにコードを追加する方法です。

両方の方法をお見せしますので、自分に合った方を選んでください。

注:マルチサイト・ネットワーク上の旧サイトと新ドメインのサイトが同じパーマリンク構造を使用していることを確認してください。

方法1.All In One SEO for WordPressを使ってリダイレクトを設定する。

この方法は簡単で、すべてのユーザーにお勧めします。 ここでは、市場で最高のWordPress SEOプラグインであるAll In One SEO for WordPressを使用します。

WordPressサイトを検索エンジン向けに簡単に最適化でき、SEO分析、カスタマイXMLサイトマップ、Schema.orgサポート、リダイレクトマネージャーなどの強力な機能を備えています。

まず、WordPressマルチサイトにAll In One SEO for WordPressプラグインをインストールして有効化し、子サイトでネットワーク有効化します。 詳しくは、WordPressマルチサイトでのプラグインのネットワーク有効化ガイドをご覧ください。

Network activate a plugin

注:リダイレクション・マネージャー機能にアクセスするには、少なくともProプランが必要です。

次に、Redirection Managerアドオンをインストールし、ネットワーク有効化する必要があります。このアドオンは、All In One SEOサイトのアカウントページの「ダウンロード」の下にあります。

Download redirection addon for All in One SEO

両方のプラグインをネットワーク有効化したら、子サイトのダッシュボードに切り替える必要があります。

ここから、All In One SEO ” リダイレクトページに行き、「フルサイトリダイレクト」タブに切り替えます。

Redirect settings

まず、「サイト移転」オプションの横にあるスイッチをオンにしてください。

次に、「Relocate to domain」オプションの隣に新しいサイトのドメイン名を入力します。

ここで「変更を保存」ボタンをクリックし、設定を保存します。

All In One SEO for WordPressはユーザーを新しいドメイン名にリダイレクトします。

方法2.リダイレクトプラグインを使ってリダイレクトを設定する

まず、WordPressマルチサイトにリダイレクトプラグインをインストールする必要があります。

ネットワークでプラグインを有効化することもできますし、子サイトの特権管理者としてログインして、そのサイトだけリダイレクトプラグインを有効化することもできます。

その後、リダイレクトを設定したい子サイトの管理ダッシュボードにアクセスする必要があります。

サブドメインから新規ドメインへのリダイレクト

リダイレクトプラグインを使えば、ドメイン名を別のドメインに向けるのがとても簡単になります。

ツール ” リダイレクトのページで「サイト」タブに切り替えるだけです。

Redirection set up

新しいドメイン名を入力し、「更新」ボタンをクリックするだけで設定が保存されます。

プラグインは、すべてのサイトユーザーを正しいパーマリンク構造で新しいドメイン名にリダイレクトします。

この方法の利点は、古いサブドメインの管理エリアにログインできることだ。

ディレクトリから新規ドメインへのリダイレクト

マルチサイトがディレクトリベースのURL構造を使用している場合、Redirectionプラグインを使用すると、新しいドメインに簡単にリダイレクトできます。

サブサイトのツール ” リダイレクトページに行き、一番上の新規追加ボタンをクリックするだけです。

New redirect

リダイレクションの設定フォームが表示されます。ここでは、そのフォームにどのように入力する必要があるかを説明します:

ソースURL^childsite/(.*)$
ターゲットURL: https://example.com/$1

childsiteとexample.comをサブサイトの名前と新しい場所に置き換えてください。

右側のドロップダウンから「Regex」を選択し、「Add Redirect」ボタンをクリックして設定を保存することを忘れないでください。

Redirect subdirectory

サブサイトにアクセスして、リダイレクトの動作を確認できます。

方法2..htaccessファイルを使ったリダイレクト設定

この方法では、マルチサイトネットワーク用のWordPressホスティングサービスアカウントの.htaccessファイルにリダイレクトルールを追加する必要があります。

サブドメインから新規ドメインへのリダイレクト

サブドメインインストールの場合は、WordPressマルチサイトの.htaccessファイルでこのコードを使用する必要があります。

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.net/$1 [L,R=301]

このコードは、subdomain.example.comのどのページに来た訪問者もhttp://www.example.net にリダイレクトします。リダイレクト先URLの末尾に$1記号をつけることで、ユーザーがリクエストしたのと同じページに確実にたどり着けるようにしています。

ディレクトリから新規ドメインへのリダイレクト

ディレクトリベースのマルチサイトインストールの場合、WordPressマルチサイトの.htaccessファイルに以下のコードを貼り付ける必要があります。

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^childsite/(.*)$ http://example.net/$1 [R=301,L]

このコードは、http://www.example.com/childsite/から来たユーザーをhttp://example.net にリダイレクトします。この$1は、ユーザーがリクエストしたのとまったく同じページや投稿にたどり着けるようにします。

childsiteとexample.netをサブサイトの名前と新しい場所に置き換えることを忘れないでください。

ステップ5:移行のトラブルシューティング

サイトの引っ越しは日常的な作業ではないため、いくつかの問題に出くわす可能性がある。

1.エクスポートファイルが大きすぎる – WordPressのエクスポートファイルが大きすぎると、正しくインポートできないことがあります。これを解決するには、大きなXMLファイルを分割する必要があります。

2.画像がインポートされない – もう一つのよくある問題は、画像が新しいサイトに正しくインポートされないことです。これを解決するには、画像を外部画像としてインポートしてみてください。

3.リダイレクトが機能しない– ユーザーが新規サイトに正しくリダイレクトされない場合、リダイレクト設定を慎重に見直す必要があります。個別インストールと子サイトが同じパーマリンク構造を使用していることを本当に〜してもよいですか?

その他のエラーについては、WordPressのその他の一般的なエラーとその修正方法をご覧ください。

この投稿が、WordPressマルチサイトから個別インストールへのサイト移行のお役に立てば幸いです。また、インストーラのWordPress SEOチェックリストを確認したり、新しいサイトで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$編集プロセスをご覧ください。

Avatar

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

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

  1. Syed Balkhi says

    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. Jiří Vaněk says

    Recently, one of our customers asked me the same question (I work for a web hosting provider in the Czech Republic). At the time, I didn’t know you had such a great tutorial on this. I’ll know next time.

  3. Ralph says

    I have 2 websites installed with multisite method on 1 hosting. I want to move 1 of them to another host, and leave one where it is. Should i export that 1 website and then transfer it to another hosting or should I do something else?

    • WPBeginner Support says

      If we understand what you’re wanting to achieve then yes you would want to export then transfer the site.

      管理者

  4. Nick James Hipol says

    Hi, just the blog post I needed.

    Can I now delete the subdomain where I made the redirection from?

    Like delete the files and stuff?

    Thank you!

  5. Parul says

    Works great! Just make sure to add all the plugins first then do the importing.

    It worked for most of the things.. just had to re-configure few menu points and theme customization.

  6. frank says

    Hi there,

    I have a problem with deleting a website in multisite installation (mainsite.com and oldsite.com). I deleted the second site (oldsite.com) through the wordpress multisite options and I uploaded a newsite in a deferent folder. my is issue is when I type newsite.com/wp-admin it sends me to mainsite.com/wp-admin

    how to fix it?

  7. Humberto wanke says

    Great post!
    In exporting/importing,however, you may want to do via sql data base, and the plugins should be put one at a time. Overall, it’s quite simple following your instructions.
    Thanks!

  8. Scott Fichter says

    Thanks for this tutorial. The underlying (between the lines header) message should read. “Avoid Multisite Like the Plague”

  9. Michael says

    This does seem to answer the question in its simplest form, BUT what about the database, themes, plugins, etc. Your example seems to be continuing to rely somewhat on the muti-site install and just redirecting to a different place. How would I COMPLETELY remove all instances of multi-site and create a stand alone install??

    • WPBeginner Support says

      This tutorial is intended to be used when a user wants to move a single site out of their multi-site network. It seems that you want to change your multi-site into a standalone site. This is out of the scope of this tutorial, we will try to cover that in a future tutorial soon.

      管理者

  10. WPBeginner Staff says

    We are not sure what you are trying to do. We are assuming that you want to install a plugin on your main site and want to use its plugins on the subdomain site. We don’t think it is possible.

  11. 4ryan says

    hello wpbeginner staff, I want to ask you is there any way to control a subdomain with same wordpress installation. for example I created subdomain support.mysite.com, and I want to show contact form(using contact form 7 plugin) there,but there is no option in wordpress to do so. I just don’t want to setup multisite because my hosting dont support it and I am wp beginner and afraid to change internal scripts for just single subdomain. Thank you for your help

  12. Antonio Catanese says

    I have multisite installed and in the dashboard I cannot see the “plugin” panel. The only way for me to see and use this panel is to go into Network Admin and network activate plugins. I tried moving to a single site (i don’t want the other one), but I cannot see the plugin panel in the dashboard anymore, although plugins are working!! any ideas?

    • Segovia says

      Antonio, if you can’t see the plugins area when logged into your child site, but you can see it within the Network Admin interface, this could be because you have done something to disable them. I know there’s a way to do this in the wp-config.php file. If you know that wasn’t the case, then are you perhaps logging in as a different user with lower permissions, like Admin or Editor?

    • txyoji says

      Antonio,
      Try UglyRobt’s “Multisite Plugin Manager” plugin.
      It will let you expose or hide plugins for different sites on your network.
      With this setup, you don’t have to network enable plugins to see them on subsites. You can pick which sites get which plugin.

返信を残す

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