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を新しいドメインに簡単に移動する方法(SEOを失うことなく)

WordPressサイトを新しいドメインに移行することは、慎重な計画を必要とする大きなステップです。ドメイン名の変更はSEOランキングに影響する可能性があるため、慎重に処理することが不可欠です。

ドメイン移行の際、一時的なSEOの変動は避けられませんが、その影響を軽減することは可能です。適切なアプローチをとれば、検索トラフィックとランキングを速やかに回復させることができます。

このガイドでは、SEOを損なうことなくWordPressを新しいドメインに移行する正しい方法を説明します。

Migrating a WordPress website to a new domain name without loosing SEO

WordPress サイトを新しいドメイン名に移行するのは怖いことですが、そんな必要はありません。私たちは、プロセスのすべてのステップをご案内します。

以下のリンクをクリックすると、WordPressサイトを新しいドメイン名に移行するための特定のステップに進むことができます:

動画チュートリアル

Subscribe to WPBeginner

もし、文章での説明がお望みなら、このまま読み進めてほしい。

ドメインを変更する前に知っておくべきこと

始める前に知っておくべきことがいくつかある。

新ドメインへの移管手続きは、Googleや他の検索エンジンが変更に対応する必要があるため、一時的に検索エンジンのランキングに影響を与えます。

また、検索トラフィックにも一時的に影響が出ます。これは通常のことであり、新しいドメインに切り替えたすべてのサイトに起こることであることを覚えておいてください。

しかし、このガイドに従うことで、SEOへの影響を劇的に減らすことができる。WordPressサイトを新しいドメイン名に移動し、適切な301リダイレクトを設定し、検索エンジンに通知する正しい方法をご紹介します。

このガイドは、WordPressサイトを新しいホスティングに移行するためのものではありません。ドメイン名の切り替えのみです。プロセスは似ていますが、いくつかの追加ステップがあります。これらの余分な手順は、SEOランキングとトラフィックを保護するのに役立ちます。

最後に、古いサイトがWordPress.comにある場合は、WordPress.comからWordPress.orgに移行する方法のガイドの指示に従ってください。

プレステップ始めるために必要なもの

このガイドでは、oldsite.comでWordPressサイトを立ち上げ、newsite.comに移行しようとしている場合を想定しています。

また、すでにWordPressのホスティングサービスアカウントをお持ちで、ウェブホスティングのコントロールパネルに慣れていることを前提としています。

また、FileZillaのようなFTPクライアントの使い方や、ホスティングアカウントのダッシュボードで利用できるファイルマネージャーアプリを使ってファイルを編集する方法も知っておく必要があります。

ホスティングサービスをお持ちでない場合、または新しいプロバイダーに切り替えたい場合は、Bluehost(小規模サイトに最適+無料ドメイン付き)、SiteGroundまたはWP Engine(大規模サイトやオンラインストアに最適)のいずれかを使用することをお勧めします。

それらが整えば、プロセスを開始する準備は整ったことになる!

ステップ1:WordPressサイトのDuplicatorパッケージを作成する

まず最初にすべきことは、WordPressサイトの完全なバックアップを作成することです。

このバックアップを使用してサイトの複製を作成し、旧ドメインから新ドメインへのリダイレクトを適切に設定できるようにします。

WordPressのバックアッププラグインは数多くありますが、このチュートリアルではDuplicatorを使用します。

Duplicatorは最高のWordPressバックアップと移行プラグインです。私たちはこのプラグインを使って、自分のビジネスやカスタマーのために数え切れないほどのサイトを移行してきました。非常に大規模なサイトでも確実に動作することがわかりました。

注: Duplicatorには無料版もあり、この移行に使用することができます。しかし、自動クラウドバックアップ、1クリックサイトリカバリ、より簡単な移行など、より多くの機能をアンロックするために、有料プランにアップグレードすることをお勧めします。

まずは、古いドメイン名にDuplicatorプラグインをインストールして有効化しましょう。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

プラグインを有効化すると、WordPress管理画面にDuplicatorメニュー項目が追加されます。Duplicatorメニューをクリックし、’新規作成’ボタンをクリックしてWordPressサイトの新しいパッケージまたはコピーを作成する必要があります。

Create a new Duplicator package

Duplicatorはバックウィザードを初期化し、自動的にこのパッケージに名前を割り当てます。

Next(次へ)」ボタンをクリックして進みます。

Duplicator package name

Duplicatorはいくつかのテストを実行し、すべてが正常かどうかを確認します。もしプラグインが問題を発見した場合、警告と指示が表示されます。

すべての項目が「Good」となっていれば、「Build」ボタンをクリックする。

Duplicator build package

プラグインは、あなたのサイトファイルのDuplicatorパッケージの作成を開始します。サイトのサイズによっては、この処理に数分かかる場合があります。

完了すると、「ダウンロード」オプションが表示されます。それをクリックすると、両方のファイルをダウンロードするか、インストーラとアーカイブ(zip)を別々にダウンロードするかのオプションが表示されます。

Duplicator download both files

コンピュータにダウンロードするには、「両方のファイル」を選択します。

アーカイブファイルはWordPressファイルの完全なコピーです。WordPressテーマ、パーマリンク設定、プラグイン、アップロード、WordPressプラグインによって作成されたその他のファイルが含まれます。

インストーラスクリプトは、アーカイブファイルを解凍することでWordPressの移行を自動化し実行するPHPファイルです。

ステップ2:新規ドメイン名のデータベースを作成する

WordPressサイトを新しいドメインに移動する前に、新しいドメイン名でWordPressを展開するための新しいSQLデータベースが必要です。

すでにデータベースを作成している場合は、このステップは省略できます。

データベースを作成するには、ホスティングサービスのcPanelダッシュボードにアクセスし、「データベース」セクションまでスクロールダウンし、「MySQLデータベース」アイコンをクリックする必要があります。

ここでは、Bluehostでそれを見つける方法を示しますが、基本的な手順は同じであり、すべてのホスティングサービスに適用されるはずです。

Bluehostアカウントのダッシュボードにログインし、サイトの下にある「設定」ボタンをクリックします。

Bluehost site settings

サイト設定で、「高度な設定」タブに切り替える必要があります。

cPanelセクションまで少しスクロールダウンし、「管理」をクリックします。

Bluehost cPanel

cPanelのダッシュボードが開きます。

Databasesセクションまでスクロールダウンし、’MySQL Databases’オプションをクリックする。

Bluehost cPanel MySQL Databases

注:あなたのホスティングサービスのコントロールパネルは、スクリーンショットとは若干異なって見えるかもしれません。しかし、新規データベースを作成するオプションがあるデータベースセクションを見つけることができるはずです。

データベースの名前を入力し、「データベースを作成」ボタンをクリックします。

Bluehost cPanel create MySQL database

cPanelはあなたのために新しいデータベースを作成します。その後、MySQLユーザーセクションまでスクロールダウンする必要があります。

次に、新規ユーザーのユーザー名とパスワードを入力し、「ユーザーを作成」ボタンをクリックしてください。ユーザー名とパスワードは安全な場所に控えておいてください。

Bluehost cPanel add MySQL database username and password

先ほど作成した新規ユーザーには、まだデータベースを操作する権限がありません。変更しましょう。

Add User to Database(ユーザーをデータベースに追加)」セクションまでスクロールダウンします。まず、「ユーザー」フィールドの隣にあるドロップダウンメニューから、作成したデータベースユーザーを選択します。次に、作成したばかりの新規データベースを選択し、’Add’ボタンをクリックします。

Bluehost cPanel Add user to database

次に、ユーザーの権限を選択するよう求められます。

すべての権限」を選択し、「変更を加える」ボタンをクリックして続行します。

Bluehost cPanel MySQL database user privileges

これでデータベースの準備が整い、WordPressを新しいドメイン名に移行することができます。

データベース名、ユーザー名、パスワードは本当に〜してもよいですか?この情報は次のステップで必要になります。

ステップ 3: 新規ドメインでWordPressを解凍する

さて、先ほどダウンロードしたDuplicatorファイルを新しいドメイン名にアップロードする必要があります。

DuplicatorパッケージにはWordPressのインストールも含まれています。つまり、新しいドメインにWordPressをインストールする必要はありません。

まず、FTPクライアントを使用してドメイン名に接続します。接続したら、サイトのルートディレクトリが完全に空であることを確認します。

その後、アーカイブとインストーラファイルをルートディレクトリにアップロードします。これは通常public_htmlと呼ばれます。

Upload Duplicator files to new domain name

両方のファイルのアップロードが完了したら、WordPressを解凍する準備ができました。

新しいブラウザータブを開き、以下のURLにアクセスする:

http://example.com/installer.php

example.comを新しいドメイン名に置き換えることを忘れないでください。これでDuplicator移行ウィザードが起動します。

Duplicator installer wizard

インストーラはアーカイブファイルを探し、画面上で自動的にオプションを選択します。

少し下にスクロールして、前のステップで作成したデータベースの情報を入力する。

Duplicator add database info

その下に、Duplicatorは自動的に旧ドメインと新ドメインのURLを表示します。

問題がなければ、’Validate’ボタンをクリックして次に進む。

Duplicator validate details

Duplicatorは提供された情報を使ってデータベースへの接続を試みます。

成功した場合、バリデーション・パスが表示されます。そうでない場合は、修正方法の詳細とともに警告が表示されます。

Duplicator validation passed

Next(次へ)」ボタンをクリックして進みます。

DuplicatorはWordPressサイトのインポートを開始します。完了すると、成功メッセージと管理者ログインボタンが表示されます。

Duplicator migration finished

Duplicatorは自動的にURLを新しいドメイン名に更新します。管理者ログイン」ボタンをクリックして、次のステップを完了することができます。

ステップ4:恒久的な301リダイレクトを設定する

次のステップは、旧ドメイン名でアクセスしたユーザーを新ドメインに誘導することです。これは301リダイレクトを設定することで行う。

301リダイレクトは、SEOとユーザーエクスペリエンスにとって非常に重要です。301リダイレクトを追加することで、ユーザーや検索エンジンを新しいドメイン名に自動的にリダイレクトすることができます。

つまり、誰かがあなたの旧ドメインの投稿やページにアクセスすると、404エラーが表示されるのではなく、新ドメインの同じ投稿やページに自動的にリダイレクトされます。

リダイレクトを維持するには、古いWordPressインストールを有効化したままにしておく必要があります。

リダイレクトを設定するには2つの方法があります。最初の方法は簡単で、数回クリックするだけです。2つ目の方法は、手動でファイルを編集する必要があります。

方法1:All In One SEOで301リダイレクトを設定する

この方法には、All In One SEO(AIOSEO)が必要です。これは市場で最高のWordPress SEOプラグインで、WordPressサイトを簡単にSEOに最適化することができます。

まず、旧ドメインにAll In One SEOプラグインをインストールして有効化する必要があります。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

:リダイレクトマネージャーアドオンにアクセスするには、少なくともプラグインのProバージョンが必要です。また、新規WordPressサイトにAIOSEOを設定することで、検索エンジンのランキングとトラフィックをさらに高めることができます。

旧ドメインで有効化した後、All In One SEO ” リダイレクトページにアクセスし、「リダイレクトを有効化」ボタンをクリックする必要があります。

Activate redirects

次に、’Full Site Redirect’タブに切り替え、’Relocate Site’トグルをオンにします。

その後、「Relocate to domain」オプションの隣に新しいドメイン名を入力する必要があります。

Full site redirect

変更を保存」ボタンをクリックして、設定を保存することを忘れないでください。

方法2:新規ドメインへのリダイレクトを手動で設定する

この方法では、旧ドメイン名のWordPress .htaccessファイルを編集する必要があります。

まず、FTPを使って古いサイトに接続し、.htaccessファイルを編集する必要があります。

これは、wp-includesまたはwp-adminフォルダと同じディレクトリにあります。.htaccessファイルを開き、一番上に以下のコードを貼り付けます:

#Options +FollowSymLinks
RewriteEngine on
Unchanged: RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

上記のコードで、newsite.comを新しいドメインに置き換えていることを確認してください。

これらの変更を適用したら、古いドメイン名にアクセスしてください。自動的に新しいドメインにリダイレクトされるはずです。

そうでない場合は、リダイレクトが適切に設定されておらず、サーバーがリダイレクトルールをサポートしていない可能性が高いことを意味します。RewriteEngineを有効にするには、ウェブホスティングサービス会社のサポートチームに連絡する必要があります。

ステップ 5: 新規ドメインを Google に通知する

WordPressを新しいドメイン名に移行し、リダイレクトを設定したら、Googleにアドレスの変更を通知しましょう。こうすることで、Googleが新しいサイトドメインを素早く見つけ、検索結果に表示されるようになります。

まず、新旧両方のドメインが2つの異なるプロパティとしてGoogle Search Consoleに追加されていることを確認する必要があります。手順については、Google Search Consoleガイドのステップ1を参照してください。

次に、Google Search Consoleアカウントのダッシュボードで、有効化したプロパティとして旧ドメイン名を選択する必要があります。

Select old domain

その後、左のカラムから「設定」メニューをクリックします。

住所変更」ツールをクリックします。

Change of Address

ここで、Googleの更新セクションから新しいドメインを選択する必要があります。

そして、’Validate & Update’ボタンをクリックしてください。

Add new address to change of address

これですべてです。Googleは、古いドメインが新しいドメインにリダイレクトされていることを確認し、変更を保存します。

次の画面では、Google Search Consoleが住所変更リクエストを送信するためのステップバイステップのウィザードを表示します。

新規ドメイン名をユーザーに知らせる

301リダイレクトがその役割を果たす一方で、移行について公表することは常に良いことだ。

新規サイトでブログ記事を投稿し、それをソーシャルメディアアカウントで共有するだけでよい。

メールマガジンや プッシュ通知の購読者がいるなら、彼らにも告知を送るべきだ。

これはいろいろな意味で役に立つ。

何よりもまず、ユーザーは一度その新ドメインについて読んだら、そのドメインを覚えている可能性が高くなります。

2つ目は、ユーザーにバグを見つけたら教えてもらうことです。あなた一人では、あらゆる種類のブラウザーやシステム環境でサイトをテストすることはできないので、常に新鮮な目で見てもらうことは有益です。

ボーナス・リソース

以下の投稿とチュートリアルは、新しいドメイン名に移行した後にSEOランキングを追跡し、回復するのに役立ちます:

このチュートリアルが、WordPressサイトを新しいドメイン名に移行する際にお役に立てば幸いです。また、無料メールドメインの取得方法やWordPress SEO完全ガイドの手順もご参照ください。

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

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

  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. Maya

    Should I keep all files on my old domain (the whole WordPress installation) or it is enough just to have .htaccess with 301 redirect?

  3. James

    Hi guys,

    The 301 redirect doest redirect the pages, what can I do?

    • Logan Cale

      I had a similar problem with the .htaccess redirect only redirecting the domain (front page), and not the sub-pages, but when I also added the line below in .htaccess file, all sub-pages were then redirected if they had the same exact name.

      Redirect 301 / https://newdomain.com/

      • Euan

        Hi Logan. You, my friend, are a legend. Several hours of searching as I had the same problem – the front page was redirecting but nothing else. I added this line of code and it is now sorted. Thank you!

  4. Kim Saxton

    Hi,
    This has been really useful thank you so much, but I am now a bit stuck.

    I got up to step 2 and ran the deployment button on the installer php site. Then I went away for a week, I made some formatting changes to my newsite (just colour, logo not any changes with pages).

    I now want to update my URLs on the installer update page. But I can no longer access it. It comes up with a 404 error page cannot be found. See
    My old site is

    Can you advise?
    Thanks
    Kim

  5. Sorin Vizireanu

    Excellent post, thank you.

  6. Ashley

    I have a question. We are a business and we just had an ecommerce shop built on our regular business website.

    We know would like to take just the shop and put that on a separate domain.

    How would that process work?

    • WPBeginner Support

      Hi Ashley,

      You will have to set up redirects in a way that only your shop URLs are redirected to the new domain name.

      管理者

  7. Peter Ishola

    How do i download the package files? Do i have to download it from my wordress admin or from my cpanel because i cannot find any download link on my wordpress admin.

    Thanks

  8. Manpreet Singh Rehsi

    Hi,
    Thanks, for such a detailed article. This really helped to moving one of my blog to a new domain last month.

    Right now my blog is undergoing a move in google webmaster. Now I want to implement SSL on my new domain.

    Should I make a move to implement the HTTPS or wait for move to be completed in google webmasters.

    Will SEO will take a negative impact if I implement https now.

  9. Ahmed Rifshaan

    Hello,

    Regarding 301 Redirect you said, we should edit old .htaccess file…

    What if we dont change host, only changing the domain name?

    My site doesnt move, only the domain is changing..

    In that case what should i do?

  10. Jay Soriano

    There is one part that could use a little bit of clarification, and I read through most of the comments and couldn’t find an answer. With regards to the 301 redirect, in the post you mention:

    “In other words, whenever someone lands on one of your old posts or pages, then they will be automatically redirected to your new site.”

    If they land on an old post (olddomain.com/post), will they be redirected to the post on the new domain (newdomain.com/post), or simply to the root domain (newdomain.com)?

  11. Claudio

    How long is it safe continue to keep the older domain and website, after you redirect to new one?

  12. Jo

    Hi, I don’t know if you can help me. I purchased a new domain name from my host. I followed the instructions in this article. When I logged into my FTP client I did so under my old domain name first of all (I think I thought I had to) and then on the ‘new session’ tab I logged in under my new domain name. Under my new domain appeared to be all the same files as my old domain.

    The article said to make sure the root file was empty so I deleted all the files from the new domain name in the FTP client and uploaded the installer.php file and archive zip file.

    When it comes to launching the installer.php file in my web browser it comes up with a 404 error and now I’m stuck. Do you have any advice?

    Thanks!

    • Jo

      UPDATE: I finally managed to get onto the Duplicator and have added a new MySQL database and run the tests. However, now when I try to log in to update the permalinks using my same username and password it says it doesn’t recognise my details. I tried ‘forgot password’ but it didn’t recognise my email.

      It’s also saying there is HTTP 500 error on my new (and old) domain names.

      Any advice would be great, please.

      Thanks!

  13. Amirhossein

    Hi

    I have a theme installed and active on my wp site right now:

    1. It has a custom post type called “video_type”.
    2. The URL pattern of all video_type post are like this: mysite.com/video_type/the-video-name-url. It means the /video_type/ is always there in all video post URLs.
    3. There is another custom post type called “genre”. Which acts as “categories” but only for video_type posts.
    4. The URL pattern for “genres” is like this: mysite.com/genre/the-genre-name-url. It means the /genre/ is always there in all genre URLs. And they contain video post lists.
    5. All of my videos and genres are indexed in google and they mostly rank very well. Some of them rank 1-3.

    Now I want to change the theme. The new theme does not recognize “video_type” and “genre”. And I don’t want theme to be recognized.

    I have decided to change the “video_type” to “post” with “Post Type Switcher” plugin. But after changing type:
    1.”genre” is no longer available for posts (Only categories are available).
    2. And I cannot change the “genre” post type to “categories” with that Plugin.
    3. mysite.com/genre/the-genre-name-url genres will be pages with no content.
    4. The URL of the video posts changes. (there will be no “video_type” in the URL and I don’t want it to be BUT SEO?)

    Here are my goals:
    1. change “genre” to “categories”.
    2. change the “genre” URLs.
    3. change the “video_type” to “post”.
    4. change “video_type” URLs.
    5. I also want to Prune and Optimize my current categories. (Remove, Add and Edit some of theme).

    So I want to know what is the best practice here for “Not having any negative SEO”? And how to achieve these goals anyway?

  14. Michel Fortin

    If I have two different websites and we want to transfer one of them to the other one. The thing is that we want to close the first website now but transfer the content later, what would be the best practice on the redirect side?

  15. Michael Barth

    Thanks for that article, but my problem is a bit more complex. I have a 301 redirect for a domain name I use to a hoster for templates websites. I now have a new hoster and a WordPress site there. I will change my 301 to now redirect to my new wordpress site. I have no access to the htaccess file on the “old” hoster, and need to cancel the contract anyway.
    Any idea how to best do that .
    Thank you.

  16. Sujeet Thakur

    Thanks a lot from bottom of my heart. My all problem are solved to read your blog. thanks again ..!

  17. saeed

    I am looking to safely migrate wordpress website to new html website without losing the google ranking. please contact

    • Sant

      Hi SAEED,
      Did you move your domain WordPress to HTML?

      I am planning my website to move from WordPress to HTML, I want to know is this effects any SEO?
      Please suggest on this?

      Thanks in advance!

  18. Alessandro Bertelli

    Hi.

    I am moving a site from a dummy/test subdomain to the definitive domain (something like moving from temporary.example.com to example.com.)

    While i kept the site mostly offline during developement i forgot for a brief period the site open.
    This was enough for googlebot to snuck in and i find many pages indexed already, with the addresses starting with temporary.example.com/whatever instead of example.com/whatever.

    Now i am going to put online the site on the real address and i fear that the fact that the same pages are indexed twice will damage SEO.

    I have no previous traffic or seo score to save from the test subdomain, can i just delete the old site?

      • Alessandro Bertelli

        Hi, thanks for the answer.

        As i said the site i want to move has no SEO to save… i am only worried of google thinking less of it because of the (temp and no more existing) duplicate pages.

        The redirect would be just for the search bots.
        Is a 301 redirect a better solution instead of just removing the site?

        • WPBeginner Support

          Even if you remove the site, you would still need to tell search engines where it has gone. This way search engines won’t penalize the new and live site for duplicate content. 301 is the HTTP code which tells search engines that the content they are trying to access has moved to this new location.

  19. Jeffrey Collins

    I simply made my site secure, changing the url. I have used a 301 redirect from the root, will that redirect all pages? This is a wordpress site.

  20. Ataul Ghani

    i just move the old domain to new domain. The process was something like that, just install wp to new domain and import all files and database on it. Then old domain made an permanent redirection to new domain. I shared sitemap to web master and other search engine also. Also old domain web master admin i said to change domain name by using domain name changer tools in web master. But still not remove any files from old domain directory, so is that will be problem for me??? lease let me know.

    Thank You!

  21. Rabin Mahmud

    Hello,
    I have a old site but I want to redirect that to new domain without losting my any permanent SEO juice. But I need to know that should I redirect all the urls of old domain to new site similar urls or I just need to redirect the domain Name.
    It’s very important for me to know.
    Thanks

  22. Ravi

    I have properly 301 redirected my site to new domain. Do i need to add sitemap of new domain after redirection and address change at webmaster tools? Also my site traffic has significantly gone down. Around 70% drop within 10 days. Is this normal? And how much time will it take to go up.

    Please answer and help.

  23. Sandy Gogoriya

    I want ask you one question. I have two website. One is old and one is new. so i want transfer my old website 5 post to my new website. Like on my old website have 5 smartphones post and i want publish these post on my new domain with old website content that already publish so what i do now.

  24. Ernest

    Hi, thank you for the great explanation! I am wondering, Does putting the code in the htacces file mean That i don’t need to redirect all individual links? I was looking at the plug-in 301 simple redirects, but there I need to fill in every single link.
    My old site is live for a while so I would like to keep the page values for Google.

    BR!

  25. Josh

    What should be done with the content on the original site after the duplicate content, all 301 redirects. and change of address in the search console are complete? Is it best to remove the original content? Any chance it will get penalized as duplicate content?

    • WPBeginner Support

      You don’t need to have the content live to set up a redirect from one WordPress install to another. But if you do, then that’s alright too, because your users and search engines won’t stay on the old content and they will be redirected. If your content was hosted on a platform like WordPress.com or Blogger, then we would recommend you to keep your content in private mode for at least six months.

      管理者

  26. David Budimir

    Hi there,

    We’re migrating our blog from a blog.domain.com to domin.com/blog. Out site is currently live on our main domain, will migrate the blog to the same database mean we need to access it differently?

    In other words, will it affect our process for creating blog content in the wordpress dashboard?

    Thanks!

    • WPBeginner Support

      No, it wouldn’t affect blog creation. However, you may need to update URLs in database to make sure that they are pointing to the new location.

      管理者

  27. sudhir

    Thanks WPBEGINNER team for writing such an awesome and helpful article. I have followed all steps carefully and migrated my old domain to new domain, everything is working fine except one, that is; my old home url is not redirecting to new one while all internal pages are redirectd to new pages.

  28. Michall Helmbæk

    THX for the best article in a long time that really works!

  29. suhan ahmed

    I want to move my https enabled site to a new https enabled domain for rebranding purpose. For example,
    From https olddomain.com
    To https newdomain.com

    To put 301 code to the .htaccess file of old domain. I need to keep the installation of old domain untouched.

    The problem is here I will need two SSLs, IPs (in some cases, servers) which is a bit costly for me.

    What can be the best solution here?

    Or

    Can I follow the below mention method!!!

    If I switch back to my https olddomain TO http olddomain
    and then from olddomain TO newdomain.

    Will I lose ranking or be penalized by Google here?

  30. roshan christy

    Hi.,
    This is article exactly something I was looking today but a bit confused now. My blog was hacked and was injected with a conditional redirect malware. Since my hosting provider allows two managed WordPress installs, I migrated the ‘uploads’ folder and database to the other one. Now I wish to change the domain name too as the current one have many external spam websites indexed by Google as subdomains. I want to keep the old domain name but delete the old site with malwares. But this article is suggesting to keep the old website with the .htaccess edit. Can I use the old domain along with new one by deleting the old website?

  31. Leonardo

    Nice, thanks. It was very helpfull!

  32. New

    Hello
    If I just move my content wordpress to newsite as the same domain I am using, Is it neccessary to do 301 redirect?

  33. Rocky

    In new Google Webmaster Tools there is not any option of changes of address option. please tell me now how can i notify google.

  34. Joey Espinoza

    Great tutorial, thank you

  35. Aron Jay

    Does this work to specific posts or it will automatically redirect everything to the new domain.

    I’m planning to move some of my posts to another domain, not entirely the whole blog. Thanks!

  36. Michael J.

    Hi WPBeginner – Your step-by-step guide is great…but, I just have a quick question to confirm before moving forward with changing my wordpress domain…

    Unfortunately, the Duplicator Plugin is not working for me….so, can I manually copy & paste a backup of the my ‘old’ site into a new directory for the ‘new domain?…and follow the rest of the steps above.

    Also, I am using the same hosting for my old & new domain — So, do I create a new directory folder for the ‘new’ domain — and keep the ‘old’ domain folder on my hosting?…basically, my hosting would have (2) site folders?…the old & new.

    I’ve read various places say I only need to point to the new domain on wordpress…however, im extremely concerned with losing my SEO rankings from my old domain, so i’ve been kindda hesitant with the process..

    Any reply would be greatly appreciated…Thanks!

    • WPBeginner Support

      You should create a new directory on your hosting server. Download all your WordPress files and then upload them to the new directory. You will also need to export your old database. Create a new database in your hosting cPanel. Open phpmyAdmin and then import your old database. Rest of the steps would be the same.

      管理者

      • Michael J.

        Thanks for the reply!…I will make sure to follow your detailed instructions.

  37. Bunty Pundir

    Hey,

    I created the package with Duplicator plugin and also, uploaded installer and archive package to new domain but unable to launch installer.php using example.com/installer.php and the browser showing server not found!

    Help please:-(

  38. Mihira

    Success!

    I was afraid to take up transfer of my domain from .in to .com since 6 months or more. This guide is so easy to follow, I was up and running in the new domain within an hour. Thank you wpbeginner for this helpful post.

    One question though… My old domain didnt have such a great SEO characteristics to pass on. I no more want to use that old domain. Can I set a 301 direct in .htaccess of old site and leave it WITHOUT RENEWING THE DOMAIN WHEN IT EXPIRES OVER THE PERIOD?

    Please let me know!

    • WPBeginner Support

      Yes, you can do that. However, it is recommended that you keep the domain up with redirects for at least 90 days. You should also submit a change of address request to Google from Google webmaster tools.

      管理者

  39. Edward

    Another question: if I delete all the old images in the old site folder, google webmaster will tell me there`s 100,000 dead paths and I will have to delete them one by one. Should I just leave the image folder untouched? I don`t want to see all those missing file notifications in my webmasters account.

  40. Edward

    I will be keeping the same .com domain but the images in the old pages will have a different name. ( e.g. from 0429_lg.jpg to ocean_home.lg.jpg so I am changing the name of 10 images ( now will have twice that number ) on each listing with different name. Does that affect SEO? I guess having the new seo friendly name in images might even be better.

  41. Shreya

    Hi there !
    Recently I tried migrating my wp website to new domain ( shared server) but the Duplicator plugin didnt work . Then I opted for manual migration, everything is working well but I can’t aceess my wp-login.php page for my new website in new domain.

    Can you please help me on this matter ? I shall provide more details of both my websites too .

    Thanks .

  42. Zane

    Thank you! Followed instructions and worked perfectly.

  43. Duane Reeve

    I’m busy migrating a clients domain and a relatively old post on MOZ.com states one should redirect each URL independently. While MOZ is an industry leader in SEO, I’m questioning this since their post is from 2009. Is this overkill or the best way to proceed?

    • WPBeginner Support

      If you have a static site with less than 10 pages, then this makes sense. But if you are moving a site with hundereds of posts, then it will be quite difficult to setup each redirect manually.

      管理者

      • Duane Reeve

        Thank You – Clients WordPress site had 36 pages/posts, which I redirecting manually using the Redirect Plugin. I then updated the sitemap and re-submitted this to both Google & Bing.
        I didn’t redirect image or tag URLs.

        After 48-hours, of doing the page/post redirects, I submitted the URL Address Change to both Google and Bing Webmaster Tools. I decided to give both Search Engine time to detect the Page/Post Redirects and will do a Domain Redirect (using .htaccess file) at the end of the week.

        Based on my Google Analytics & Google Webmaster Tools for the new Domain I’m pretty happy with the results so far.

      • Dario Fumagalli

        What Moz says is 100% safe, whereas what WPBeginner says has one big issue: the old website sitemap.

        Adding a sitewide 301, **also** redirects calls to the old sitemaps, whereas Google needs it to stay in there to prove both the old sitemap and the new one are same or similar.

        Therefore, if you do it the Moz way you are ultra-safe, if you do it the WPBeginner way you need to add exceptions to exclude all the old sitemap index (if any) and sitemap(s) until Google understand both refer to the same ownership.

  44. Mark D

    Hi, I don’t have an FTP provider. When I loaded one, it lit up my anti-virus software. I am trying to create a website for a friend based on my site. Is there an easy, non-FTP solution, to clone to my friend’s domain. Once that’s there, I can then update with her content.

    Thanks,

  45. Lynn Dye

    Is it a good idea to delete my old site (except for the .htaccess file), on my old host so I don’t have 2 exact sites on two hosts?

  46. Nelson

    Can your created a tutorial moving a wordpress site to a new doman wihout a plugin, like for example moving subcategory to the main site or subdoman to the mina site wihtout a plugin.

  47. Satish

    Hi, very useful article but i have a doubt . What if i download my backup manually by making zip, also download the database from Mysql from cpanel.

    And then manually upload to the new host filemanager. Do i need to change the URL in database from old-domain.com to new-domain.com before uploading the database to mysql?
    Hope you understand, what i’m saying!

  48. Daniel Ruyter

    Question on the redirects – I’m currently running two sites (two TLD’s, two hosts) and would like to consolidate into a single site, retiring the “old” site host. Can I redirect the “old” TLD to the new at the DNS and then add rewrite rules to my “new” site’s .htaccess for the migrated posts?

    Thank you!

    -Daniel

  49. Lynn Dye

    This has worked well – question on the redirect. I changed my domain AND hosting. So I’d like to close out my old hosting account.

    How long should I have the redirect for my old domain? I’m planning on keeping the old domain for some time.

    Would a forward on the old domain accomplish the same thing as the 301 redirect?

    • Daniel Ruyter

      I’d keep the old domain name redirected as long as you’re able.

  50. Lynn Dye

    If I used BackupBuddy to move my site to a new domain and then followed the directions to do the 301 redirect, shouldn’t I get the same result

    What about typing in the old and new url that Duplicator has you do – how is that step done with BackupBuddy?

    Thanks for an interesting post.

  51. Katie Steckly

    So if I transfer my site with these exact instructions, with Google analytics automatically keep working? Or do I need to re-install the tracking code on my new site, and take it off the old one?

    • Travis Pflanz

      Google Analytics will still work as long as you use the same UA code as before. That said, it may be worthwhile to setup a new view in your Google Analytics dashboard after you make the change

返信を残す

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