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でGoogle AMPを正しく無効化する方法

Google AMPの流行に乗った多くのブログやサイトが、さまざまな理由でAMPを無効化している。なぜなら、AMPは読み込み速度を向上させるために、サイトのさまざまな要素を取り除くからだ。

AMPページをテストした経験では、コンバージョン、ページビュー、全体的なエンゲージメントが低いことに気づきました。さらに、Google アナリティクスの最新バージョンはGoogle AMPをサポートしていません。そのため、WPBeginnerではAMPページは表示されません。

この投稿では、WordPressでGoogle AMPを適切に無効化する方法を紹介する。

How to disable AMP in WordPress

WordPressでGoogle AMPを無効化すべき理由

Accelerated Mobile Pages(AMP)は、モバイルユーザー向けにウェブを高速化し、ユーザー体験を向上させるためのオープンソースの取り組みである。

これは、最小限のHTMLと JavaScriptでページを提供することで実現する。これにより、コンテンツはGoogle AMPキャッシュにホスティングサービスされます。Googleは、ユーザーが検索結果であなたのリンクをクリックすると、即座にこのキャッシュされたバージョンを提供することができます。

しかし、WordPressにGoogle AMPを設定することを選択した場合、間違った選択をしたと感じるかもしれない。

あなただけではない。多くのブロガー、インフルエンサー、オンライン出版物がWordPressサイトでAMPの使用を中止している。

まず、WordPressサイトでAMPの無効化を検討する理由を説明し、次にそのプロセスを説明します。

Google アナリティクス4はAMPをサポートしない

Googleアナリティクス4(GA4)は、サイトとモバイルアプリを同じアカウントでトラッキングするGoogleアナリティクスの最新バージョンです。新しいトラッキング方法、レポート機能、メトリクス、レポートなど、多くの変更をもたらします。

これらの変更のうち、GA4は現時点ではAMPを公式にサポートしておらず、将来的に機能するかどうかも確認されていない。その理由の1つは、サイトとアプリの訪問者を同じプロパティでトラッキングすることです。

しかしGoogleアナリティクスは、ユニバーサルアナリティクスのプロパティで古いデータにアクセスできるのは2024年7月1日までだと述べている。つまり、ユニバーサルアナリティクスのレポートにアクセスして過去のデータを表示することはできるが、最新バージョンでトラッキングすることはまだできないということだ。

コンバージョン率の大幅ドロップ

Google AMPは、HTML/JavaScriptに多くの制限を設けている。つまり、WordPressサイトの多くのインタラクティブな要素は、オプトインフォームや終了意図のポップアップのように、AMPでは見えなくなってしまうのです。

その結果、サイトオーナーはユーザーに購読を促したり問い合わせフォームに入力させたり、商品を購入させたりすることができない。

モバイルユーザーによるページビューの低下

AMPでは、サイトのサイドバーやその他のコンテンツ発見機能が表示されません。そのため、モバイルユーザーによるページビューが大幅にドロップします。

実際、ユーザー・エクスペリエンスの専門家の中には、上部にある閉じるボタンは、ユーザーが投稿を読んだ後、サイトを閲覧するのではなく、Google検索に戻ることを促すと指摘する人もいる。

Close button on amp pages

ユーザー・エンゲージメントの低下

多くのサイトは、クリック・ツイート・ウィジェット、ユーザー評価、コメントなどのようなユーザー・インタラクションで繁栄している。Google AMPは、サイトオーナーにとって、ユーザーをコンテンツに参加させ、インタラクションさせ続けることをかなり難しくしている。

Google AMPは無効化すべきか?

この質問に対する答えは、実はあなたのサイトによります。モバイルユーザーがオーディエンスの大半を占めるのであれば、AMPを利用した方がよいでしょう。

一方、Google AMPを試してみて、コンバージョン率に悪影響が出た場合は、Google AMPを無効化した方がいいだろう。

一般的に信じられていることとは異なり、GoogleはAMPを使用していないサイトにペナルティを与えることはありません。モバイル検索ユーザーを獲得するために、モバイルでのサイトのスピードとパフォーマンスを改善することは可能です。

すべてを念頭に置いて、WordPressサイトでAMPを無効化する方法を見てみましょう。

WordPressでGoogle AMPプラグインを無効化する

ウェブサイトにAMPサポートを追加するために、誰もが同じWordPressプラグインを使用するわけではありません。しかし、どのプラグインを使っても基本的な設定は同じです。

まず最初に行う必要があるのは、インストールしたAMPプラグインを無効化することです。

WordPressダッシュボードからプラグイン ” インストール済みプラグインのページにアクセスし、AMPプラグイン名の下にある「無効化」をクリックするだけです。

Deactivate the amp plugin

プラグインを無効化するだけで、サイトのAMPサポートは無効化される。しかし、あなたのサイトをAMPフリーにするためには、さらにいくつかのステップがある。

AMPページのリダイレクト設定

AMPプラグインを無効化すると、投稿のAMPバージョンがサイトから削除される。しかし、それだけでは不十分であり、特にAMPを1週間以上オンにしている場合はなおさらである。

Googleはすでにそれらのページをインデックスしており、検索結果に表示し続ける可能性が高い。ユーザーがそのページをクリックし、サイトから削除した場合、そのコンテンツがなくなっているため、ユーザーは404ページを見つけることになります。

この問題を解決するには、AMPページに来たユーザーを通常の非AMPページにリダイレクトする必要がある。

Google AMPのリダイレクトを設定する方法として、プラグインを使用する方法とコードを使用する方法の2種類をご紹介します。都合の良い方を選んでください。

方法1:リダイレクトプラグインを使う

WordPressでリダイレクトを設定する最も簡単な方法は、All In One SEO(AIOSEO)プラグインを使用することです。これは、強力なリダイレクトマネージャーを提供するWordPressのための最高のSEOプラグインです。

リダイレクト・マネージャーが含まれているため、AIOSEO Proライセンスが必要です。

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

有効化したら、WordPressダッシュボードからAll In One SEO ” Redirectsに移動し、’Activate Redirects’ボタンをクリックします。

Activate redirects addon

これで、この機能を扱うAIOSEO Redirection Managerアドオンをインストールすることができます。有効化すると、「リダイレクト」タブに移動します。ここで、リダイレクトを設定するためにソースとターゲットのURLを入力することができます。

まず、ソースURLフィールドの「歯車」アイコンをクリックし、「Regex」チェックボックスを有効化する必要がある。

Enable regex option in redirection manager

その後、ソースURLフィールドに以下のコードを追加する:

^/(.*)\/amp

Target URL(ターゲットURL)フィールドに、以下のフォーマットでサイトのURLを追加する必要があります:

https://example.com/$1

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

Enter redirection details

次に、「リダイレクトタイプ」を301 Moved Permanentlyのままにしておきます。こうすることで、ユーザーは恒久的に非AMPページにリダイレクトされます。

最後に「Add Redirect」ボタンをクリックして変更を保存します。

サイトの以前のAMPページのURLにアクセスして、リダイレクトが正しく機能しているかどうかを確認できるようになりました。

AIOSEOは、サイト上のリンク切れをトラッキングするのにも役立ちます。404エラーにつながるAMPページを素早く特定し、リダイレクトすることができます。詳しくは、WordPressで404ページを追跡してリダイレクトする方法のガイドをご覧ください。

方法2:.htaccessに手動でリダイレクトを設定する

プラグインを使用してリダイレクトを設定したくない場合は、WordPressホスティングアカウントの.htaccessファイルを使用してリダイレクトを設定することができます。

まず、 FTPクライアントまたはcPanelのファイルマネージャを使用してサイトに接続する必要があります。詳しくは、WordPressでFTPを使ってファイルをアップロードする方法をご覧ください。

接続したら、サイトのルート・フォルダーにある.htaccessファイルを探す必要があります。

Open .htaccess file

次に、ルートフォルダーのファイルを編集します。

そして、.htaccessファイルの一番下に以下のコードを追加するだけです:

// Redirect AMP to non-AMP
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]

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

リダイレクトが意図したとおりに機能していることを確認するために、サイト上の投稿の旧AMPバージョンのURLにアクセスできるようになりました。

この投稿が、WordPressでGoogle AMPを適切に無効化するのにお役に立てば幸いです。初心者のためのステップバイステップの究極の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$編集プロセスをご覧ください。

アバター

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

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

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

    Hi,

    Tried adding :

    // Redirect AMP to non-AMP
    RewriteEngine Aan
    RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
    RewriteRule ^ %1/ [R=301,L]

    But still lots of 404’s looking for AMP?

    • WPBeginner Support

      We would recommend checking with your hosting provider as some have settings that need to be applied for redirects to work.

      管理者

  3. Ravi Bandakkanavar

    Thanks for the redirection trick. It worked like a rocket :)

    • WPBeginner Support

      Glad our guide could help!

      管理者

  4. Vyom Manikya

    After following all the steps, now I’m getting this error “Discovered – Currently not Indexed” for my non-amp pages.

  5. Loren

    I’ve tried applying this to a site I’m working on without any luck. I’ve cleared cache and tried a handful of other things, but the redirects do not seem to be catching. Does this work for sites that google is wrapping the url in themselves?

  6. Scott Hunt

    I installed the Redirection Plugin and followed the process. Amp was only Active on our mobile version and only showed if our website was searched, for example, Delta, and then clicked on the link. If you entered the URL in the address bar it would show our website correctly. I am at a loss!

    I know it was amp because Amp is the in URL when the website is not displayed correctly. Any advice would be sincerely appreciated.

    • WPBeginner Support

      You would want to ensure you clear any caching you have on your site as that could be showing the cached version of the page on your site instead of the updated version.

      管理者

  7. James

    Hey WPbeginner, Great article and helped me so much with my website .

    Thanks

    • WPBeginner Support

      Glad our guide was helpful :)

      管理者

  8. GILL COTTER

    I did it and it works thanks.. I was in a panic. Just one thing – a little sad looking emoji guy pops up and says ‘404 that’s an error’ just before the user is directed to the correct page. It pops up for a minute then goes away. How can I get rid of him?

    • WPBeginner Support

      You may either need to clear your browser cache or check with your hosting provider to ensure there isn’t something causing issues with your redirects.

      管理者

  9. Hicham

    It works, Thanks so much ☺

    • WPBeginner Support

      Glad our guide was helpful :)

      管理者

  10. Akshay Malhotra

    Thank you so much for this post. As always WP beginner rocks! :)

    • WPBeginner Support

      Glad you found our content helpful :)

      管理者

  11. sai ram

    I have removed AMP from my website but when disabled my AMP i will recieved new issue in Google Search Console as a “Referenced AMP url is not an AMP”.
    Please tell me sir how can it solved.

    • WPBeginner Support

      You would want to set up redirection following step 2 for fixing that issue.

      管理者

  12. Mustafa

    That’s great info and help guys. Thanks a lot. Here’s my question:

    What is the right direction code or way for redirect my old website’s amp pages to my new domain’s non-amp pages?

    • WPBeginner Support

      You would want to follow step 2 in the article and have the source URL be the old domain before the / in our recommendation.

      管理者

  13. Daniel

    Can I delete the Redirect plugin when all the amp pages are deindexed from Google?

    • WPBeginner Support

      We would recommend keeping the plugin active while using the redirect if you use the plugin method.

      管理者

  14. Faiz Khan

    Today I desabled AMP plugin. When I checked my website with AMP URL it showing error.

    • WPBeginner Support

      That issue is solved with the redirects which we show in this article :)

      管理者

  15. Stephen Walker

    Hit a little snag. I have added the code you suggest to my .htaccess file. I now get an internal error 500 from the server if I am trying to access an amp post. Normal pages display correctly.

  16. Alvine

    Thanks for the wonderful article. I wonder how one can remove just a single page from amp. Your method only explains removing all amp pages of a website but I want to remove just one page. How can I remove it please help.

    • WPBeginner Support

      You would want to check with the plugin’s support for if that is currently an option. Normally, you should see an option on the page/post itself to not use AMP.

      管理者

  17. Laura

    This is super easy to follow, so I’m so grateful to have found this post – but my AMP pages are still showing on Google, even after doing the redirection using the Redirection plugin. I’m not sure what to do, I saw in the comments something about caching, but I’m not sure how to do this?

    • WPBeginner Support

      For Google’s cache, you would need to have Google recrawl your site with its URL checker or wait for Google to notice the update and change your links.

      管理者

返信を残す

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